[Pkg-mozext-commits] [adblock-plus] 342/464: Make sure to actually mark the JS shell as executable after download

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 5ad0a5a5e45458035062c3d5d0f85f13635d23e3
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Dec 19 15:10:34 2012 +0100

    Make sure to actually mark the JS shell as executable after download
---
 utils.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/utils.py b/utils.py
index a6a9353..1611d5f 100644
--- a/utils.py
+++ b/utils.py
@@ -35,4 +35,10 @@ def ensureJSShell():
 
   if not os.path.exists(path):
     raise Exception('Downloaded package didn\'t contain JS shell executable')
+
+  try:
+    os.chmod(path, 0700)
+  except:
+    pass
+
   return path

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list