[Buildbot-commits] buildbot/buildbot/slave bot.py,1.11,1.12

Brian Warner warner at users.sourceforge.net
Mon Apr 25 19:06:26 UTC 2005


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

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

make sure the slave's basedir exists at startup

2005-04-25  Brian Warner  <warner at lothar.com>

   * buildbot/slave/bot.py (Bot.startService): make sure the basedir
   really exists at startup, might save some confusion somewhere.


Index: bot.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/bot.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- bot.py	22 Apr 2005 21:29:18 -0000	1.11
+++ bot.py	25 Apr 2005 19:06:23 -0000	1.12
@@ -244,6 +244,10 @@
         self.not_really = not_really
         self.builders = {}
 
+    def startService(self):
+        assert os.path.isdir(self.basedir)
+        service.MultiService.startService(self)
+
     def remote_getDirs(self):
         return filter(lambda d: os.path.isdir(d), os.listdir(self.basedir))
 





More information about the Commits mailing list