Ok this was pretty tricky. If config.guess & config.sub is a symlink to somewhere else

you might copy a file into itself resulting in empty files in /usr/share/gnuconfig. So 
if these files are links just rm them first then copy. As seen in faac package
This commit is contained in:
İsmail Dönmez
2005-10-16 13:31:37 +00:00
parent e5b00516fb
commit 72c25c539d
+2
View File
@@ -43,6 +43,8 @@ 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)
copy('/usr/share/gnuconfig/%s' % file, join_path(root, file))
ctx.ui.info(_('GNU Config Update Finished.'))