[yocto] [AB PATCH 18/27] yoctogit: Remove use of oe.path.exists()
Elizabeth Flanagan
elizabeth.flanagan at intel.com
Wed Mar 5 10:23:09 PST 2014
From: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan at intel.com>
---
.../buildbot/steps/source/yoctogit.py | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
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 446631d..64dfe06 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
@@ -246,10 +246,17 @@ class YoctoGit(Source):
log.msg("Source step failed while running command %s" % cmd)
raise buildstep.BuildStepFailed()
d.addCallback(lambda _: evaluateCommand(cmd))
+ if self.mirrordir:
+ mirror = self.mirrordir + "/" + self.repourl.replace("git://", "") + "/"
+ if self.pathExists(mirror):
+ self.srcdir=mirror
+ else:
+ self.srcdir='source/'+self.repourl
+ if self.layername == "poky" or self.layername == "oecore" or "eclipse" in self.layername:
+ self.todir = "build/"
+ else:
+ self.todir = "build/" + self.layername
- self.workdir = 'source/'+self.repourl
- self.srcdir='source/'+self.repourl
- self.todir = "build/" + self.layername
d.addCallback(lambda _: self.incremental())
def copy(_):
cmd = buildstep.RemoteCommand('cpdir',
@@ -465,8 +472,6 @@ class YoctoGit(Source):
args += ['--depth', '1']
command = ['clone'] + args + [self.repourl, '.']
- import os
-
mirror = None
if self.mirrordir:
mirror = self.mirrordir + "/" + self.repourl.replace("git://", "") + "/"
--
1.8.1.2
More information about the yocto
mailing list