[Buildbot-commits] buildbot/buildbot/process step.py,1.98,1.99

Brian Warner warner at users.sourceforge.net
Mon Aug 21 00:43:22 UTC 2006


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

Modified Files:
	step.py 
Log Message:
[project @ accept either a single string or a list for ShellCommand description=]
This fixes SF#1524659, thanks to Paul Winkler for the catch.

Original author: warner at lothar.com
Date: 2006-08-21 00:38:00

Index: step.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/step.py,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- step.py	20 Aug 2006 22:25:35 -0000	1.98
+++ step.py	21 Aug 2006 00:43:20 -0000	1.99
@@ -1128,8 +1128,12 @@
         self.workdir = workdir # required by RemoteShellCommand
         if description:
             self.description = description
+        if isinstance(self.description, str):
+            self.description = [self.description]
         if descriptionDone:
             self.descriptionDone = descriptionDone
+        if isinstance(self.descriptionDone, str):
+            self.descriptionDone = [self.descriptionDone]
         if command:
             self.command = command
         # merge a class-level 'logfiles' attribute with one passed in as an





More information about the Commits mailing list