burada os.walk ile geziyoruz, içerdeki klasörler unutulmuş...
This commit is contained in:
@@ -43,8 +43,9 @@ def gnuconfig_update():
|
||||
for root, dirs, files in os.walk(os.getcwd()):
|
||||
for file in files:
|
||||
if file in ['config.sub', 'config.guess']:
|
||||
if os.path.islink(file):
|
||||
unlink(file)
|
||||
targetFile = os.path.join(root, file)
|
||||
if os.path.islink(targetFile):
|
||||
unlink(targetFile)
|
||||
copy('/usr/share/gnuconfig/%s' % file, join_path(root, file))
|
||||
ctx.ui.info(_('GNU Config Update Finished.'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user