file -> fileName
This commit is contained in:
@@ -41,12 +41,12 @@ def preplib(sourceDirectory = '/usr/lib'):
|
|||||||
def gnuconfig_update():
|
def gnuconfig_update():
|
||||||
''' copy newest config.* onto source\'s '''
|
''' copy newest config.* onto source\'s '''
|
||||||
for root, dirs, files in os.walk(os.getcwd()):
|
for root, dirs, files in os.walk(os.getcwd()):
|
||||||
for file in files:
|
for fileName in files:
|
||||||
if file in ['config.sub', 'config.guess']:
|
if fileName in ['config.sub', 'config.guess']:
|
||||||
targetFile = os.path.join(root, file)
|
targetFile = os.path.join(root, fileName)
|
||||||
if os.path.islink(targetFile):
|
if os.path.islink(targetFile):
|
||||||
unlink(targetFile)
|
unlink(targetFile)
|
||||||
copy('/usr/share/gnuconfig/%s' % file, join_path(root, file))
|
copy('/usr/share/gnuconfig/%s' % fileName, join_path(root, fileName))
|
||||||
ctx.ui.info(_('GNU Config Update Finished.'))
|
ctx.ui.info(_('GNU Config Update Finished.'))
|
||||||
|
|
||||||
def libtoolize(parameters = ''):
|
def libtoolize(parameters = ''):
|
||||||
|
|||||||
Reference in New Issue
Block a user