[pypy-commit] buildbot default: Normalize the permissions of the file after upload.

arigo noreply at buildbot.pypy.org
Wed Jun 8 16:42:03 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r514:c9f385692369
Date: 2011-06-08 16:39 +0200
http://bitbucket.org/pypy/buildbot/changeset/c9f385692369/

Log:	Normalize the permissions of the file after upload.

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -33,6 +33,13 @@
         self.masterdest = masterdest
         transfer.FileUpload.start(self)
 
+    def finished(self, *args, **kwds):
+        transfer.FileUpload.finished(self, *args, **kwds)
+        try:
+            os.chmod(self.masterdest, 0644)
+        except OSError:
+            pass
+
 class Translate(ShellCmd):
     name = "translate"
     description = ["translating"]


More information about the pypy-commit mailing list