[Buildbot-commits] buildbot/buildbot/status builder.py,1.82,1.83

Brian Warner warner at users.sourceforge.net
Fri Jun 16 05:27:54 UTC 2006


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

Modified Files:
	builder.py 
Log Message:
[project @ improve BuildStepStatus creation and setting]

Original author: warner at lothar.com
Date: 2006-06-16 01:01:40

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- builder.py	15 Jun 2006 05:47:35 -0000	1.82
+++ builder.py	16 Jun 2006 05:27:51 -0000	1.83
@@ -1068,16 +1068,15 @@
 
     # methods for the base.Build to invoke
 
-    def addStep(self, step):
+    def addStep(self, name):
         """The Build is setting up, and has added a new BuildStep to its
-        list. The BuildStep object is ready for static queries (everything
-        except ETA). Give it a BuildStepStatus object to which it can send
-        status updates."""
+        list. Create a BuildStepStatus object to which it can send status
+        updates."""
 
         s = BuildStepStatus(self)
-        s.setName(step.name)
-        step.step_status = s
+        s.setName(name)
         self.steps.append(s)
+        return s
 
     def setProperty(self, propname, value):
         self.properties[propname] = value





More information about the Commits mailing list