burada os.walk ile geziyoruz, içerdeki klasörler unutulmuş...

This commit is contained in:
S.Çağlar Onur
2005-10-24 03:34:01 +00:00
parent 90bb2b0ef1
commit 79e969eb50
+3 -2
View File
@@ -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.'))