cleanup, this will work on all arches not just i686
This commit is contained in:
@@ -58,7 +58,7 @@ def configure(parameters = ''):
|
|||||||
def make(parameters = ''):
|
def make(parameters = ''):
|
||||||
'''make source with given parameters.'''
|
'''make source with given parameters.'''
|
||||||
if can_access_file('Makefile'):
|
if can_access_file('Makefile'):
|
||||||
if system('make %s' % parameters):
|
if system('make %s' % parameters):
|
||||||
raise MakeError, _('Make failed.')
|
raise MakeError, _('Make failed.')
|
||||||
else:
|
else:
|
||||||
if system('perl Build build'):
|
if system('perl Build build'):
|
||||||
@@ -67,7 +67,7 @@ def make(parameters = ''):
|
|||||||
def install(parameters = 'install'):
|
def install(parameters = 'install'):
|
||||||
'''install source with given parameters.'''
|
'''install source with given parameters.'''
|
||||||
if can_access_file('Makefile'):
|
if can_access_file('Makefile'):
|
||||||
if system('make %s' % parameters):
|
if system('make %s' % parameters):
|
||||||
raise InstallError, _('Make failed.')
|
raise InstallError, _('Make failed.')
|
||||||
else:
|
else:
|
||||||
if system('perl Build install'):
|
if system('perl Build install'):
|
||||||
@@ -76,9 +76,7 @@ def install(parameters = 'install'):
|
|||||||
fixLocalPod()
|
fixLocalPod()
|
||||||
|
|
||||||
def fixLocalPod():
|
def fixLocalPod():
|
||||||
podFiles = [ "%s/usr/lib/perl5/vendor_perl/%s/i686-linux/perllocal.pod" % (get.installDIR(), get.curPERL()),
|
podFiles = glob.glob("%s/usr/lib/*/*/*/perllocal.pod" % get.installDIR())
|
||||||
"%s/usr/lib/perl5/%s/i686-linux/perllocal.pod" % (get.installDIR(), get.curPERL()),
|
|
||||||
"%s/usr/lib/perl5/site_perl/%s/perllocal.pod" % (get.installDIR(), get.curPERL())]
|
|
||||||
|
|
||||||
for podFile in podFiles:
|
for podFile in podFiles:
|
||||||
if can_access_file(podFile):
|
if can_access_file(podFile):
|
||||||
|
|||||||
Reference in New Issue
Block a user