[Buildbot-commits] buildbot/buildbot/process builder.py,1.50,1.51

Brian Warner warner at users.sourceforge.net
Tue Aug 7 23:41:08 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21861/buildbot/process

Modified Files:
	builder.py 
Log Message:
[project @ add max_builds= to BuildSlave, thanks to Dustin Mitchell. Closes #48.]

Original author: warner at lothar.com
Date: 2007-08-07 23:40:12+00:00

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/builder.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- builder.py	7 Aug 2007 20:23:39 -0000	1.50
+++ builder.py	7 Aug 2007 23:41:06 -0000	1.51
@@ -50,7 +50,7 @@
 
     def isAvailable(self):
         # if this SlaveBuilder is busy, then it's definitely not available
-        if self.state != IDLE:
+        if self.isBusy():
             return False
 
         # otherwise, check in with the BuildSlave
@@ -60,6 +60,9 @@
         # no slave? not very available.
         return False
 
+    def isBusy(self):
+        return self.state != IDLE
+
     def attached(self, slave, remote, commands):
         """
         @type  slave: L{buildbot.buildslave.BuildSlave}
@@ -112,7 +115,7 @@
 
     def buildFinished(self):
         self.state = IDLE
-        reactor.callLater(0, self.builder.maybeStartBuild)
+        reactor.callLater(0, self.builder.botmaster.maybeStartAllBuilds)
 
     def ping(self, timeout, status=None):
         """Ping the slave to make sure it is still there. Returns a Deferred





More information about the Commits mailing list