From: Joshua G Lock <joshua.g.lock@linux.intel.com>
To: Bill Randle <william.c.randle@intel.com>, yocto@yoctoproject.org
Subject: Re: [yocto-autobuilder][PATCHv2] PublishLayerTarballs.py: don't change directories for Eclipse builds
Date: Wed, 13 Jul 2016 14:25:34 +0100 [thread overview]
Message-ID: <1468416334.7977.5.camel@linux.intel.com> (raw)
In-Reply-To: <1468342649-18342-1-git-send-email-william.c.randle@intel.com>
On Tue, 2016-07-12 at 09:57 -0700, Bill Randle wrote:
> 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 <william.c.randle@intel.com>
> ---
> V2: fix Python syntax error
>
> .../site-
> packages/autobuilder/buildsteps/PublishLayerTarballs.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/python2.7/site-
> packages/autobuilder/buildsteps/PublishLayerTarballs.py
> b/lib/python2.7/site-
> packages/autobuilder/buildsteps/PublishLayerTarballs.py
> index c140725..7c1ce4a 100644
> --- a/lib/python2.7/site-
> packages/autobuilder/buildsteps/PublishLayerTarballs.py
> +++ b/lib/python2.7/site-
> packages/autobuilder/buildsteps/PublishLayerTarballs.py
> @@ -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:
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
> command = "cd " + self.layername + ";"
> else:
> command = ""
prev parent reply other threads:[~2016-07-13 13:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 16:57 [yocto-autobuilder][PATCHv2] PublishLayerTarballs.py: don't change directories for Eclipse builds Bill Randle
2016-07-13 13:25 ` Joshua G Lock [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1468416334.7977.5.camel@linux.intel.com \
--to=joshua.g.lock@linux.intel.com \
--cc=william.c.randle@intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.