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:
S.Çağlar Onur
2006-10-09 16:36:25 +00:00
parent 60cd28d680
commit df30cf708f
+7 -1
View File
@@ -24,6 +24,7 @@ import pisi.actionsapi
import pisi.actionsapi.get as get
from pisi.actionsapi.shelltools import system
from pisi.actionsapi.shelltools import can_access_file
from pisi.actionsapi.shelltools import export
class ConfigureError(pisi.actionsapi.Error):
def __init__(self, value=''):
@@ -45,8 +46,13 @@ class InstallError(pisi.actionsapi.Error):
self.value = value
ctx.ui.error(value)
def configure(parameters = ''):
def configure(parameters = '', unsermake = False):
''' 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'):
args = './configure \
--prefix=%s \