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 root, dirs, files in os.walk(os.getcwd()):
|
||||||
for file in files:
|
for file in files:
|
||||||
if file in ['config.sub', 'config.guess']:
|
if file in ['config.sub', 'config.guess']:
|
||||||
if os.path.islink(file):
|
targetFile = os.path.join(root, file)
|
||||||
unlink(file)
|
if os.path.islink(targetFile):
|
||||||
|
unlink(targetFile)
|
||||||
copy('/usr/share/gnuconfig/%s' % file, join_path(root, file))
|
copy('/usr/share/gnuconfig/%s' % file, join_path(root, file))
|
||||||
ctx.ui.info(_('GNU Config Update Finished.'))
|
ctx.ui.info(_('GNU Config Update Finished.'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user