From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 1/4] bitbake-diffsigs: handle if task name is specified without do_ prefix
Date: Fri, 04 Oct 2013 18:04:20 +0100 [thread overview]
Message-ID: <13030124.ISsAHLpZIV@helios> (raw)
In-Reply-To: <6b322934d5cc34601098dc935400e0e8a6e7df1e.1380904913.git.paul.eggleton@linux.intel.com>
On Friday 04 October 2013 17:44:25 Paul Eggleton wrote:
> Warn the user and adjust the task name automatically if the -t option
> is specified with a task name that doesn't start with do_ (e.g.
> "configure" instead of "do_configure").
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
> bitbake/bin/bitbake-diffsigs | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs
> index 3ce70da..6e4c44a 100755
> --- a/bitbake/bin/bitbake-diffsigs
> +++ b/bitbake/bin/bitbake-diffsigs
> @@ -39,6 +39,10 @@ def find_compare_task(bbhandler, pn, taskname):
> logger.error('Metadata does not support finding signature data
> files') sys.exit(1)
>
> + if not taskname.startswith('do_'):
> + logger.warn('Invalid task name "%s" - assuming you meant "do_%s"' %
> (taskname, taskname)) + taskname = 'do_%s' % taskname
> +
> filedates = bb.siggen.find_siginfo(pn, taskname, None,
> bbhandler.config_data) latestfiles = sorted(filedates.keys(), key=lambda f:
> filedates[f])[-2:] if not latestfiles:
I've dropped the warning message on the branch after discussion with Richard -
the do_ prefix is really an internal detail and users are used to specifying
these without the prefix when using bitbake -c.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2013-10-04 17:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 16:44 [PATCH 0/4] BitBake signature tool improvements Paul Eggleton
2013-10-04 16:44 ` [PATCH 1/4] bitbake-diffsigs: handle if task name is specified without do_ prefix Paul Eggleton
2013-10-04 17:04 ` Paul Eggleton [this message]
2013-10-04 16:44 ` [PATCH 2/4] bitbake-diffsigs: refactor argument parsing slightly Paul Eggleton
2013-10-04 16:44 ` [PATCH 3/4] bitbake-diffsigs: improve error handling Paul Eggleton
2013-10-04 16:44 ` [PATCH 4/4] bitbake-dumpsig: introduce command line and " Paul Eggleton
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=13030124.ISsAHLpZIV@helios \
--to=paul.eggleton@linux.intel.com \
--cc=bitbake-devel@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 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.