gnome.yelp(): Handle platforms where symlink not supported
@@ -80,8 +80,11 @@ def install_help(srcdir, blddir, sources, media, langs, install_dir, destdir, pr
mlog.log('Symlinking %s to %s.' % (outfile, srcfile))
if '/' in m or '\\' in m:
os.makedirs(os.path.dirname(outfile), exist_ok=True)
+ try:
os.symlink(srcfile, outfile)
continue
+ except (NotImplementedError, OSError):
+ mlog.warning('Symlinking not supported, falling back to copying')
else:
# Lang doesn't have media file so copy it over 'C' one
infile = os.path.join(srcdir, 'C', m)
