From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] archiver.bbclass: DISTRO is not required variable so deal with it
Date: Thu, 22 Nov 2012 10:06:55 +0000 [thread overview]
Message-ID: <1424745.oM7gvEqakJ@helios> (raw)
In-Reply-To: <1353575950-7484-1-git-send-email-marcin.juszkiewicz@linaro.org>
On Thursday 22 November 2012 10:19:10 Marcin Juszkiewicz wrote:
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> meta/classes/archiver.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
> index 160a3aa..ac6e401 100644
> --- a/meta/classes/archiver.bbclass
> +++ b/meta/classes/archiver.bbclass
> @@ -8,7 +8,6 @@
>
> ARCHIVE_EXCLUDE_FROM ?= ".pc autom4te.cache"
> ARCHIVE_TYPE ?= "tar srpm"
> -DISTRO ?= "poky"
> PATCHES_ARCHIVE_WITH_SERIES = 'yes'
> SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= '${@d.getVarFlag('ARCHIVER_MODE',
> 'log_type') \ if d.getVarFlag('ARCHIVER_MODE', 'log_type') != 'none' else
> 'logs_with_scripts'}' @@ -492,6 +491,8 @@ def create_diff_gz(d):
>
> s=d.getVar('S', True)
> distro = d.getVar('DISTRO',True)
> + if not distro:
> + distro = ""
> dest = s + '/' + distro + '/files'
> if not os.path.exists(dest):
> bb.mkdirhier(dest)
A more pythonic way to deal with this (as used elsewhere) would be:
distro = d.getVar('DISTRO',True) or ""
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2012-11-22 10:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 9:19 [PATCH] archiver.bbclass: DISTRO is not required variable so deal with it Marcin Juszkiewicz
2012-11-22 10:06 ` Paul Eggleton [this message]
2012-11-22 10:15 ` Marcin Juszkiewicz
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=1424745.oM7gvEqakJ@helios \
--to=paul.eggleton@linux.intel.com \
--cc=marcin.juszkiewicz@linaro.org \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox