[Buildbot-commits] buildbot/buildbot/process builder.py,1.49,1.50
Brian Warner
warner at users.sourceforge.net
Tue Aug 7 20:23:41 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10394/buildbot/process
Modified Files:
builder.py
Log Message:
[project @ have BuildSlaves track their associated SlaveBuilders]
Original author: warner at lothar.com
Date: 2007-08-07 19:59:19+00:00
Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/builder.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- builder.py 7 Aug 2007 19:48:54 -0000 1.49
+++ builder.py 7 Aug 2007 20:23:39 -0000 1.50
@@ -73,6 +73,7 @@
self.slave = slave
self.remote = remote
self.remoteCommands = commands # maps command name to version
+ self.slave.addSlaveBuilder(self)
log.msg("Buildslave %s attached to %s" % (slave.slavename,
self.builder_name))
d = self.remote.callRemote("setMaster", self)
@@ -100,6 +101,8 @@
def detached(self):
log.msg("Buildslave %s detached from %s" % (self.slave.slavename,
self.builder_name))
+ if self.slave:
+ self.slave.removeSlaveBuilder(self)
self.slave = None
self.remote = None
self.remoteCommands = None
More information about the Commits
mailing list