PublishLayerTarballs.py: don't change directories for Eclipse builds
PATCH v2 1/1 PublishLayerTarballs.py: don't change directories for Eclipse builds
When publishing eclipse tarballs, we are already in the correct directory, so skip the change direction operation (which will generate an error).
---
V2: fix Python syntax error
.../site-packages/autobuilder/buildsteps/PublishLayerTarballs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py +2 -1
@@ -38,7 +38,8 @@ class PublishLayerTarballs(ShellCommand): snapshot = "" self.basedir=os.path.join(os.path.join(os.path.join( self.workerdir, buildername), self.workdir)) - if self.layername is not "poky": + if self.layername is not "poky" + and "eclipse" not in self.layername: command = "cd " + self.layername + ";" else: command = ""
Signature · 1 line
2.5.5
Quoted 23 lines · Bill Randle
When publishing eclipse tarballs, we are already in the correct directory,
so skip the change direction operation (which will generate an error).Signed-off-by Bill Randle <[email protected]>---
V2: fix Python syntax error.../site- packages/autobuilder/buildsteps/PublishLayerTarballs.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0
packages/autobuilder/buildsteps/PublishLayerTarballs.pyb/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.pyindex c140725..7c1ce4a 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py(quoted diff) +0
-0@@ -38,7 +38,8 @@ class PublishLayerTarballs(ShellCommand):
Quoted 7 lines
snapshot = "" self.basedir=os.path.join(os.path.join(os.path.join( self.workerdir, buildername), self.workdir))
- if self.layername is not "poky":
+ if self.layername is not "poky"
+ and "eclipse" not in self.layername:
I believe this is still broken?
It's invalid syntax to continue an if statement on a new line without either a) a backslash for line continuation or b) enclosing the statement in parentheses (and thereby using implied continuation).
Cheers,
Joshua
Quoted 3 lines
command = "cd " + self.layername + ";" else:
command = ""