summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorAlex Franco <alejandro.franco@linux.intel.com>2015-09-02 15:11:30 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-04 16:23:58 +0100
commit7ef2f951d690df0939a8349ac024352b2a144249 (patch)
treedfd639b2a75c8295f4665b8346d7e6e6db7e8df0 /bitbake/lib/bb/runqueue.py
parentccc1d9ac0c7a0e1768fdfc043da106d144029f3c (diff)
downloadpoky-7ef2f951d690df0939a8349ac024352b2a144249.tar.gz
bitbake: 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] (Bitbake rev: dd3050ceef37ac556546e940aa596ce96ef6c8df) Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 0f99e5ab8e..2b71eed06e 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -793,7 +793,9 @@ class RunQueueData:
793 if self.cooker.configuration.invalidate_stamp: 793 if self.cooker.configuration.invalidate_stamp:
794 for (fn, target) in self.target_pairs: 794 for (fn, target) in self.target_pairs:
795 for st in self.cooker.configuration.invalidate_stamp.split(','): 795 for st in self.cooker.configuration.invalidate_stamp.split(','):
796 invalidate_task(fn, "do_%s" % st, True) 796 if not st.startswith("do_"):
797 st = "do_%s" % st
798 invalidate_task(fn, st, True)
797 799
798 # Iterate over the task list and call into the siggen code 800 # Iterate over the task list and call into the siggen code
799 dealtwith = set() 801 dealtwith = set()