summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
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/lib/bb/runqueue.py
parent0e9049a0117ae48d73b4dd4de1a13c57e3942f85 (diff)
downloadpoky-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/lib/bb/runqueue.py')
-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 fce08eefa6..b2c9703594 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -720,6 +720,9 @@ class RunQueueData:
720 720
721 def invalidate_task(fn, taskname, error_nostamp): 721 def invalidate_task(fn, taskname, error_nostamp):
722 taskdep = self.dataCache.task_deps[fn] 722 taskdep = self.dataCache.task_deps[fn]
723 fnid = self.taskData.getfn_id(fn)
724 if taskname not in taskData.tasks_lookup[fnid]:
725 logger.warn("Task %s does not exist, invalidating this task will have no effect" % taskname)
723 if 'nostamp' in taskdep and taskname in taskdep['nostamp']: 726 if 'nostamp' in taskdep and taskname in taskdep['nostamp']:
724 if error_nostamp: 727 if error_nostamp:
725 bb.fatal("Task %s is marked nostamp, cannot invalidate this task" % taskname) 728 bb.fatal("Task %s is marked nostamp, cannot invalidate this task" % taskname)