* KeepSpecial should control pod file removal, not actionapi's perl install

* Remove .packlist files
This commit is contained in:
Faik Uygur
2009-11-09 10:02:33 +00:00
parent c349b9c11a
commit c3aa79310a
+9 -7
View File
@@ -74,11 +74,13 @@ def install(parameters = 'install'):
if system('perl Build install'): if system('perl Build install'):
raise MakeError, _('perl install failed.') raise MakeError, _('perl install failed.')
fixLocalPod() removePacklist()
def fixLocalPod(): def removePacklist():
podFiles = glob.glob('%s/usr/lib/*/*/*/perllocal.pod' % get.installDIR()) ''' cleans .packlist file from perl packages '''
path = '%s/%s' % (get.installDIR(), "/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/auto/" % (get.curPERL(), get.HOST().split("-")[0]))
for podFile in podFiles: for root, dirs, files in os.walk(path):
if can_access_file(podFile): for packFile in files:
unlink(podFile) if packFile == ".packlist":
if can_access_file('%s/%s' % (root, packFile)):
unlink('%s/%s' % (root, packFile))