[Buildbot-commits] buildbot/buildbot/scripts startup.py,1.8,1.9
Brian Warner
warner at users.sourceforge.net
Sat Dec 22 06:34:56 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/scripts
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32424/buildbot/scripts
Modified Files:
startup.py
Log Message:
[project @ startup: check for buildbot.tac before starting, since the error message when you use the wrong directory is pretty weird]
Original author: warner at lothar.com
Date: 2007-12-22 06:34:28+00:00
Index: startup.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scripts/startup.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- startup.py 12 Dec 2007 03:02:13 -0000 1.8
+++ startup.py 22 Dec 2007 06:34:54 -0000 1.9
@@ -64,6 +64,12 @@
def start(config):
os.chdir(config['basedir'])
+ if (not os.path.exists("buildbot.tac") and
+ not os.path.exists("Makefile.buildbot")):
+ print "This doesn't look like a buildbot base directory:"
+ print "No buildbot.tac or Makefile.buildbot file."
+ print "Giving up!"
+ sys.exit(1)
if config['quiet']:
return launch(config)
More information about the Commits
mailing list