[Buildbot-commits] buildbot/buildbot/status/web baseweb.py, 1.30, 1.31

Brian Warner warner at users.sourceforge.net
Mon Oct 1 01:06:53 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv781/buildbot/status/web

Modified Files:
	baseweb.py 
Log Message:
[project @ WebStatus: yes create public_html/ at startup, otherwise we get internal server errors instead of 404s]

Original author: warner at lothar.com
Date: 2007-10-01 01:05:53+00:00

Index: baseweb.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/baseweb.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- baseweb.py	1 Oct 2007 00:41:03 -0000	1.30
+++ baseweb.py	1 Oct 2007 01:06:51 -0000	1.31
@@ -427,7 +427,9 @@
             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
+            # populate this directory. Create the directory, though, since
+            # otherwise we get internal server errors instead of 404s.
+            os.mkdir(htmldir)
         root = static.File(htmldir)
 
         for name, child_resource in self.childrenToBeAdded.iteritems():





More information about the Commits mailing list