diff options
author | Alex Franco <alejandro.franco@linux.intel.com> | 2015-09-02 15:11:30 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 23:28:16 +0100 |
commit | dd3050ceef37ac556546e940aa596ce96ef6c8df (patch) | |
tree | 9893cc6253795e6e7a49cddb293fa0e051505243 /lib/bb/runqueue.py | |
parent | dd9284944ae0f0feecb70adab880fed636f7cd59 (diff) | |
download | bitbake-dd3050ceef37ac556546e940aa596ce96ef6c8df.tar.gz |
cooker/runqueue: Allow bitbake commands starting with do_
The output of "bitbake, -c listtasks pkg" lists tasks with their real names
(starting with "do_"), but then "bitbake -c do_task" fails, as "do_" always
gets unconditionally prepended to task names. This patch handles this error
by checking whether a task starts with "do_" prior to prepending it with it
when the task runlist is being constructed (and a few other corner cases).
[YOCTO #7818]
Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 0f99e5ab8..2b71eed06 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -793,7 +793,9 @@ class RunQueueData: if self.cooker.configuration.invalidate_stamp: for (fn, target) in self.target_pairs: for st in self.cooker.configuration.invalidate_stamp.split(','): - invalidate_task(fn, "do_%s" % st, True) + if not st.startswith("do_"): + st = "do_%s" % st + invalidate_task(fn, st, True) # Iterate over the task list and call into the siggen code dealtwith = set() |