diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-10-04 11:13:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-07 09:37:34 +0100 |
commit | 7c72144419bb9c4e918144f90903a88b27c44d79 (patch) | |
tree | a0fe2238c5aa77bc38036377e83d582f7ac989db /bitbake | |
parent | f18194c0889d3d90627457f057e88002f297a2e3 (diff) | |
download | poky-7c72144419bb9c4e918144f90903a88b27c44d79.tar.gz |
bitbake: bitbake-diffsigs: handle if task name is specified without do_ prefix
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").
(Bitbake rev: d182cbc63745303ef2dc9fa2cbbf5d87a68e0b52)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 3ce70dabd9..79f1d6a438 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs | |||
@@ -39,6 +39,9 @@ def find_compare_task(bbhandler, pn, taskname): | |||
39 | logger.error('Metadata does not support finding signature data files') | 39 | logger.error('Metadata does not support finding signature data files') |
40 | sys.exit(1) | 40 | sys.exit(1) |
41 | 41 | ||
42 | if not taskname.startswith('do_'): | ||
43 | taskname = 'do_%s' % taskname | ||
44 | |||
42 | filedates = bb.siggen.find_siginfo(pn, taskname, None, bbhandler.config_data) | 45 | filedates = bb.siggen.find_siginfo(pn, taskname, None, bbhandler.config_data) |
43 | latestfiles = sorted(filedates.keys(), key=lambda f: filedates[f])[-2:] | 46 | latestfiles = sorted(filedates.keys(), key=lambda f: filedates[f])[-2:] |
44 | if not latestfiles: | 47 | if not latestfiles: |