Check if any package wants to use unsermake as a build system or whole kde packages try to use this :(
This commit is contained in:
@@ -24,6 +24,7 @@ import pisi.actionsapi
|
|||||||
import pisi.actionsapi.get as get
|
import pisi.actionsapi.get as get
|
||||||
from pisi.actionsapi.shelltools import system
|
from pisi.actionsapi.shelltools import system
|
||||||
from pisi.actionsapi.shelltools import can_access_file
|
from pisi.actionsapi.shelltools import can_access_file
|
||||||
|
from pisi.actionsapi.shelltools import export
|
||||||
|
|
||||||
class ConfigureError(pisi.actionsapi.Error):
|
class ConfigureError(pisi.actionsapi.Error):
|
||||||
def __init__(self, value=''):
|
def __init__(self, value=''):
|
||||||
@@ -45,8 +46,13 @@ class InstallError(pisi.actionsapi.Error):
|
|||||||
self.value = value
|
self.value = value
|
||||||
ctx.ui.error(value)
|
ctx.ui.error(value)
|
||||||
|
|
||||||
def configure(parameters = ''):
|
def configure(parameters = '', unsermake = False):
|
||||||
''' parameters = '--with-nls --with-libusb --with-something-usefull '''
|
''' parameters = '--with-nls --with-libusb --with-something-usefull '''
|
||||||
|
|
||||||
|
''' Check if any package wants to use unsermake as a build system'''
|
||||||
|
if not unsermake:
|
||||||
|
export("UNSERMAKE", "no")
|
||||||
|
|
||||||
if can_access_file('configure'):
|
if can_access_file('configure'):
|
||||||
args = './configure \
|
args = './configure \
|
||||||
--prefix=%s \
|
--prefix=%s \
|
||||||
|
|||||||
Reference in New Issue
Block a user