diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-08-06 16:19:12 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-08-19 09:27:15 -0700 |
commit | f432c71b34fbb4856fb5d08700b412302e5313da (patch) | |
tree | 77480252d83672594674b85f46a6e71aa9360f78 | |
parent | 0adcb7c37583da49e19bd2da63230ca799118a59 (diff) | |
download | bitbake-f432c71b34fbb4856fb5d08700b412302e5313da.tar.gz |
Fix IndexError encountered when a 'depends' flag references a nonexistant task
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-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 c5f4380c8..1a275405c 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -445,7 +445,9 @@ class RunQueue: depdata = taskData.build_targets[depid][0] if depdata is not None: dep = taskData.fn_index[depdata] - taskid = taskData.gettask_id(dep, idependtask) + taskid = taskData.gettask_id(dep, idependtask, False) + if taskid is None: + bb.msg.fatal(bb.msg.domain.RunQueue, "Task %s in %s depends upon nonexistant task %s in %s" % (taskData.tasks_name[task], fn, idependtask, dep)) depends.append(taskid) if depdata != fnid: tdepends_fnid[fnid].add(taskid) |