diff options
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
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) |