[Buildbot-commits] buildbot/buildbot/status/web baseweb.py, 1.29, 1.30
Brian Warner
warner at users.sourceforge.net
Mon Oct 1 00:41:05 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23499/buildbot/status/web
Modified Files:
baseweb.py
Log Message:
[project @ WebStatus: log a useful message if public_html/ is missing]
Original author: warner at lothar.com
Date: 2007-10-01 00:40:37+00:00
Index: baseweb.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/baseweb.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- baseweb.py 30 Sep 2007 21:20:48 -0000 1.29
+++ baseweb.py 1 Oct 2007 00:41:03 -0000 1.30
@@ -421,10 +421,14 @@
# this is responsible for creating the root resource. It isn't done
# at __init__ time because we need to reference the parent's basedir.
htmldir = os.path.join(self.parent.basedir, "public_html")
- if not os.path.isdir(htmldir):
- os.mkdir(htmldir)
+ if os.path.isdir(htmldir):
+ log.msg("WebStatus using (%s)" % htmldir)
+ else:
+ log.msg("WebStatus: warning: %s is missing. Do you need to run"
+ " 'buildbot upgrade-master' on this buildmaster?" % htmldir)
+ # all static pages will get a 404 until upgrade-master is used to
+ # populate this directory
root = static.File(htmldir)
- log.msg("WebStatus using (%s)" % htmldir)
for name, child_resource in self.childrenToBeAdded.iteritems():
root.putChild(name, child_resource)
More information about the Commits
mailing list