drop removeLaFiles as its functionality is built-in to pisi and it has never been used
This commit is contained in:
@@ -66,7 +66,7 @@ def dohtml(*sourceFiles):
|
|||||||
makedirs(destionationDirectory)
|
makedirs(destionationDirectory)
|
||||||
|
|
||||||
allowed_extensions = ['.png', '.gif', '.html', '.htm', '.jpg', '.css', '.js']
|
allowed_extensions = ['.png', '.gif', '.html', '.htm', '.jpg', '.css', '.js']
|
||||||
disallowed_directories = ['CVS']
|
disallowed_directories = ['CVS', '.git', '.svn', '.hg']
|
||||||
|
|
||||||
for sourceFile in sourceFiles:
|
for sourceFile in sourceFiles:
|
||||||
sourceFileGlob = glob.glob(sourceFile)
|
sourceFileGlob = glob.glob(sourceFile)
|
||||||
@@ -281,10 +281,3 @@ def removeDir(destinationDirectory):
|
|||||||
|
|
||||||
for directory in destdirGlob:
|
for directory in destdirGlob:
|
||||||
unlinkDir(directory)
|
unlinkDir(directory)
|
||||||
|
|
||||||
def removeLaFiles(lookInto='/usr/lib/'):
|
|
||||||
''' cleans *.la files from /usr/lib '''
|
|
||||||
for root, dirs, files in os.walk('%s/%s' % (get.installDIR(), lookInto)):
|
|
||||||
for laFile in files:
|
|
||||||
if laFile.endswith('.la') and can_access_file('%s/%s' % (root, laFile)):
|
|
||||||
unlink('%s/%s' % (root, laFile))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user