[yocto] [AB PATCH 16/22] yoctogit.py: Set workdir within dovccmd

Elizabeth Flanagan elizabeth.flanagan at intel.com
Wed Mar 19 13:51:14 PDT 2014


From: Beth Flanagan <elizabeth.flanagan at intel.com>

Ensure we're in the correct place by setting workdir in dovccmd.

Signed-off-by: Beth Flanagan <elizabeth.flanagan at intel.com>
---
 .../buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py        | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py b/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py
index c739d7d..6990abe 100644
--- a/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py
+++ b/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py
@@ -376,6 +376,10 @@ class YoctoGit(Source):
                 full_command.append('-c')
                 full_command.append('%s=%s' % (name, value))
         full_command.extend(command)
+        if self.method in ['barecopy', 'movecopy']:
+            self.workdir='source/'+self.repourl
+        else:
+            self.workdir = 'build'
         cmd = buildstep.RemoteShellCommand(self.workdir,
                                            full_command,
                                            env=self.env,
-- 
1.8.1.2




More information about the yocto mailing list