summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPetter Mabäcker <petter@technux.se>2013-07-24 10:31:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-29 15:25:09 +0100
commitbd1c441a210cae03fb6006c996227211cc29056b (patch)
tree85451880fea8b2405a4d4a5e54c970658cb4362e /bitbake
parent0e9049a0117ae48d73b4dd4de1a13c57e3942f85 (diff)
downloadast2050-yocto-poky-bd1c441a210cae03fb6006c996227211cc29056b.zip
ast2050-yocto-poky-bd1c441a210cae03fb6006c996227211cc29056b.tar.gz
bitbake: bitbake: runqueue: add warning if invalidating invalid task
Add a warning if 'bitbake -C' is executed with a task that does not exist. Fixes [YOCTO #4877] (Bitbake rev: 6459c1d0eb8f1007246df36149e2496ee531e25f) Signed-off-by: Petter Mabäcker <petter@technux.se> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/runqueue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index fce08ee..b2c9703 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -720,6 +720,9 @@ class RunQueueData:
def invalidate_task(fn, taskname, error_nostamp):
taskdep = self.dataCache.task_deps[fn]
+ fnid = self.taskData.getfn_id(fn)
+ if taskname not in taskData.tasks_lookup[fnid]:
+ logger.warn("Task %s does not exist, invalidating this task will have no effect" % taskname)
if 'nostamp' in taskdep and taskname in taskdep['nostamp']:
if error_nostamp:
bb.fatal("Task %s is marked nostamp, cannot invalidate this task" % taskname)
OpenPOWER on IntegriCloud