[Buildbot-commits] buildbot/buildbot/status builder.py,1.58,1.59

Brian Warner warner at users.sourceforge.net
Mon May 23 17:45:58 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6003/buildbot/status

Modified Files:
	builder.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-216
Creator:  Brian Warner <warner at monolith.lothar.com>

fix HTMLLogFile upgrades, add basedir to sys.path in 'buildbot start'

	* buildbot/scripts/runner.py (start): put the basedir in sys.path
	before starting: this was done by twistd back when we spawned it,
	now that we're importing the pieces and running them in the
	current process, we have to do it ourselves. This allows
	master.cfg to import files from the same directory without
	explicitly manipulating PYTHONPATH. Thanks to Thomas Vander
	Stichele for the catch.

	* buildbot/status/builder.py (HTMLLogFile.upgrade): oops! second
	fix to make this behave like other LogFiles, this time to handle
	existing LogFiles on disk. (add the missing .upgrade method)
	* buildbot/test/test_status.py (Log.testHTMLUpgrade): test it


Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- builder.py	17 May 2005 10:14:09 -0000	1.58
+++ builder.py	23 May 2005 17:45:56 -0000	1.59
@@ -481,6 +481,9 @@
         del d['step']
         return d
 
+    def upgrade(self, logfilename):
+        pass
+
 
 class Event:
     if implements:





More information about the Commits mailing list