]> khamidou — GitHub mirrors - electron.git/commitdiff
Do not copy system libraries with permission bits.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 13 May 2014 13:03:32 +0000 (21:03 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 13 May 2014 13:03:32 +0000 (21:03 +0800)
script/create-dist.py

index 270be34bf169f039bf69eec9b5ecfc548403f2ab..63519edfdf2c67159a136b5745aed1f6a7d1c8a6 100755 (executable)
@@ -177,7 +177,7 @@ def copy_system_libraries():
     for i, library in enumerate(SYSTEM_LIBRARIES):
       real_library = m.group(1)
       if real_library.startswith(library):
-        shutil.copy2(m.group(2), os.path.join(DIST_DIR, real_library))
+        shutil.copyfile(m.group(2), os.path.join(DIST_DIR, real_library))
         SYSTEM_LIBRARIES[i] = real_library