Ubuntu Pastebin

Paste from sergiusens at Thu, 29 Oct 2015 00:36:20 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
=== modified file 'snapcraft/repo.py'
--- snapcraft/repo.py	2015-10-19 19:54:09 +0000
+++ snapcraft/repo.py	2015-10-29 00:35:42 +0000
@@ -292,7 +292,11 @@
         logger.warning(
             'Copying needed target link from the system {}'.format(real_path))
         os.makedirs(os.path.dirname(target), exist_ok=True)
-        shutil.copyfile(os.readlink(path), target)
+        try:
+            shutil.copyfile(os.readlink(path), target)
+        except OSError as e:
+            if e.errno is not os.errno.EPERM:
+                raise e
         return True
     else:
         logger.warning(
Download as text