[Buildbot-commits] buildbot/buildbot/slave commands.py,1.81,1.82

Brian Warner warner at users.sourceforge.net
Wed Jul 4 05:09:49 UTC 2007


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

Modified Files:
	commands.py 
Log Message:
[project @ ShellCommand: create the workdir if it didn't already exist]

Original author: warner at lothar.com
Date: 2007-07-04 05:09:08+00:00

Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- commands.py	3 Jul 2007 17:59:03 -0000	1.81
+++ commands.py	4 Jul 2007 05:09:47 -0000	1.82
@@ -309,6 +309,9 @@
         return self.deferred
 
     def _startCommand(self):
+        # ensure workdir exists
+        if not os.path.isdir(self.workdir):
+            os.makedirs(self.workdir)
         log.msg("ShellCommand._startCommand")
         if self.notreally:
             self.sendStatus({'header': "command '%s' in dir %s" % \





More information about the Commits mailing list