]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake-diffsigs: handle if task name is specified without do_ prefix
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 4 Oct 2013 11:13:46 +0000 (11:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Oct 2013 17:05:41 +0000 (18:05 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bin/bitbake-diffsigs

index 3ce70dabd9032ea862045b03d6ee1cc79586cbfc..79f1d6a43890a8b57ce7cd4f2e5e2a39a308df3d 100755 (executable)
@@ -39,6 +39,9 @@ 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_'):
+        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: