[Buildbot-commits] buildbot/contrib arch_buildbot.py,1.3,1.4
Brian Warner
warner at users.sourceforge.net
Wed May 4 05:01:20 UTC 2005
Update of /cvsroot/buildbot/buildbot/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1451/contrib
Modified Files:
arch_buildbot.py
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-126
Creator: Brian Warner <warner at monolith.lothar.com>
let arch_buildbot.py survive if there are no logfiles
* contrib/arch_buildbot.py: survive if there are no logfiles, don't
use os.getlogin()
Index: arch_buildbot.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/contrib/arch_buildbot.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- arch_buildbot.py 4 May 2005 04:14:38 -0000 1.3
+++ arch_buildbot.py 4 May 2005 05:01:17 -0000 1.4
@@ -18,7 +18,7 @@
# ~/.arch-params/hooks/ARCHIVE/=commit/10buildbot.py
master = "localhost:9989"
-username = os.getlogin() # or use an explicit string, like "warner"
+username = "myloginname"
# Remember that for this to work, your buildmaster's master.cfg needs to have
# a c['sources'] list which includes a pb.PBChangeSource instance.
@@ -42,7 +42,8 @@
if len(logfiles) > 1:
print ("Warning, multiple ++log.* files found, getting comments "
"from the first one")
- open(commentfile, "w").write(open(logfiles[0], "r").read())
+ if logfiles:
+ open(commentfile, "w").write(open(logfiles[0], "r").read())
elif os.getenv("ARCH_HOOK_ACTION") == "commit":
revision = os.getenv("ARCH_REVISION")
More information about the Commits
mailing list