summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/gen-lockedsig-cache6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/gen-lockedsig-cache b/scripts/gen-lockedsig-cache
index 49de74ed9b..6765891d19 100755
--- a/scripts/gen-lockedsig-cache
+++ b/scripts/gen-lockedsig-cache
@@ -62,7 +62,11 @@ for f in files:
62 os.remove(dst) 62 os.remove(dst)
63 if (os.stat(src).st_dev == os.stat(destdir).st_dev): 63 if (os.stat(src).st_dev == os.stat(destdir).st_dev):
64 print('linking') 64 print('linking')
65 os.link(src, dst) 65 try:
66 os.link(src, dst)
67 except OSError as e:
68 print('hard linking failed, copying')
69 shutil.copyfile(src, dst)
66 else: 70 else:
67 print('copying') 71 print('copying')
68 shutil.copyfile(src, dst) 72 shutil.copyfile(src, dst)