Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r1091:00dca717ce23
Date: 2019-08-15 13:23 +0300
http://bitbucket.org/pypy/buildbot/changeset/00dca717ce23/

Log:    do not symlink to empty files from failed builds

diff --git a/bot2/pypybuildbot/builds.py b/bot2/pypybuildbot/builds.py
--- a/bot2/pypybuildbot/builds.py
+++ b/bot2/pypybuildbot/builds.py
@@ -80,10 +80,11 @@
             os.chmod(self.masterdest, 0644)
         except OSError:
             pass
-        try:
-            symlink_force(os.path.basename(self.masterdest), self.symlinkname)
-        except OSError:
-            pass
+        if os.stat(self.masterdest).st_size > 10:
+            try:
+                symlink_force(os.path.basename(self.masterdest), 
self.symlinkname)
+            except OSError:
+                pass
 
 class PyPyDownload(transfer.FileDownload):
     parms = transfer.FileDownload.parms + ['basename']
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to