From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: OpenEmbedded Core Mailing List
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] uboot-config.bbclass; Raise an error for unknown configs
Date: Fri, 11 Oct 2013 09:18:15 +0100 [thread overview]
Message-ID: <1381479495.29912.98.camel@ted> (raw)
In-Reply-To: <1381428927-7057-1-git-send-email-otavio@ossystems.com.br>
On Thu, 2013-10-10 at 15:15 -0300, Otavio Salvador wrote:
> When passing the wrong value for UBOOT_CONFIG it ought to raise an
> error otherwise it is quite difficult for user to notice it didn't
> behave as expected.
>
> Reported-by: Lauren Post <lauren.post@freescale.com>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> meta/classes/uboot-config.bbclass | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass
> index ba01bff..ff226a1 100644
> --- a/meta/classes/uboot-config.bbclass
> +++ b/meta/classes/uboot-config.bbclass
> @@ -51,4 +51,9 @@ python () {
> if len(items) > 1 and items[1]:
> bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1])
> d.appendVar('IMAGE_FSTYPES', ' ' + items[1])
> +
> + # Go out as we found a match!
> + break
> + else:
> + raise bb.parse.SkipPackage("UBOOT_CONFIG %s is not supported" % ubootconfig)
> }
Shouldn't this be an exception such as ValueError rather than
SkipPackage?
Cheers,
Richard
next prev parent reply other threads:[~2013-10-11 8:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 18:15 [PATCH] uboot-config.bbclass; Raise an error for unknown configs Otavio Salvador
2013-10-11 8:18 ` Richard Purdie [this message]
2013-10-11 11:54 ` Otavio Salvador
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=1381479495.29912.98.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=otavio@ossystems.com.br \
/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