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:
@@ -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.'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user