[Buildbot-commits] buildbot/buildbot master.py,1.66,1.67

Brian Warner warner at users.sourceforge.net
Thu Apr 28 07:34:31 UTC 2005


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

Modified Files:
	master.py 
Log Message:
(BuildMaster.upgradeToVersion3): deal with broken .tap files from 0.6.3 by
getting rid of .services, .namedServices, and .change_svc at load time.


Index: master.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/master.py,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- master.py	27 Apr 2005 11:46:14 -0000	1.66
+++ master.py	28 Apr 2005 07:34:27 -0000	1.67
@@ -576,7 +576,7 @@
 
 class BuildMaster(service.MultiService, styles.Versioned):
     debug = 0
-    persistenceVersion = 2
+    persistenceVersion = 3
     manhole = None
     debugPassword = None
     projectName = "(unspecified)"
@@ -642,6 +642,13 @@
         del self.webUNIXPort
         self.configFileName = "master.cfg"
 
+    def upgradeToVersion3(self):
+        # post 0.6.3, solely to deal with the 0.6.3 breakage. Starting with
+        # 0.6.5 I intend to do away with .tap files altogether
+        self.services = []
+        self.namedServices = {}
+        del self.change_svc
+
     def startService(self):
         service.MultiService.startService(self)
         self.loadChanges() # must be done before loading the config file





More information about the Commits mailing list