doğrusu bu :)
This commit is contained in:
@@ -28,12 +28,6 @@ from pisi.actionsapi.shelltools import can_access_file
|
|||||||
from pisi.actionsapi.shelltools import export
|
from pisi.actionsapi.shelltools import export
|
||||||
from pisi.actionsapi.shelltools import unlink
|
from pisi.actionsapi.shelltools import unlink
|
||||||
|
|
||||||
class CompileError(pisi.actionsapi.Error):
|
|
||||||
def __init__(self, value=''):
|
|
||||||
pisi.actionsapi.Error.__init__(self, value)
|
|
||||||
self.value = value
|
|
||||||
ctx.ui.error(value)
|
|
||||||
|
|
||||||
class ConfigureError(pisi.actionsapi.Error):
|
class ConfigureError(pisi.actionsapi.Error):
|
||||||
def __init__(self, value=''):
|
def __init__(self, value=''):
|
||||||
pisi.actionsapi.Error.__init__(self, value)
|
pisi.actionsapi.Error.__init__(self, value)
|
||||||
@@ -57,10 +51,10 @@ def configure(parameters = ''):
|
|||||||
export('PERL_MM_USE_DEFAULT', '1')
|
export('PERL_MM_USE_DEFAULT', '1')
|
||||||
if can_access_file('Build.PL'):
|
if can_access_file('Build.PL'):
|
||||||
if system('perl Build.PL installdirs=vendor destdir=%s' % get.installDIR()):
|
if system('perl Build.PL installdirs=vendor destdir=%s' % get.installDIR()):
|
||||||
raise CompileError, _('Configure failed.')
|
raise ConfigureError, _('Configure failed.')
|
||||||
else:
|
else:
|
||||||
if system('perl Makefile.PL %s PREFIX=/usr INSTALLDIRS=vendor DESTDIR=%s' % (parameters, get.installDIR())):
|
if system('perl Makefile.PL %s PREFIX=/usr INSTALLDIRS=vendor DESTDIR=%s' % (parameters, get.installDIR())):
|
||||||
raise CompileError, _('Configure failed.')
|
raise ConfigureError, _('Configure failed.')
|
||||||
|
|
||||||
def make(parameters = ''):
|
def make(parameters = ''):
|
||||||
'''make source with given parameters.'''
|
'''make source with given parameters.'''
|
||||||
|
|||||||
Reference in New Issue
Block a user