diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-08-06 16:19:12 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:36:54 +0000 |
commit | 36318110da95aa4a47f4546c830398344e066a36 (patch) | |
tree | 4a219ff2f240a7f9b539f48f10f7b4053cb28cf3 /bitbake | |
parent | 151c4a7a3336aff0dad89541db233b48c38fa5a0 (diff) | |
download | openembedded-core-36318110da95aa4a47f4546c830398344e066a36.tar.gz openembedded-core-36318110da95aa4a47f4546c830398344e066a36.tar.bz2 openembedded-core-36318110da95aa4a47f4546c830398344e066a36.tar.xz openembedded-core-36318110da95aa4a47f4546c830398344e066a36.zip |
Fix IndexError encountered when a 'depends' flag references a nonexistant task
(Bitbake rev: 4b0fd70539e73d99282fa89d47ad2d5f642ca4f4)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index d1e8cd11e..6d9f6dc8d 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -454,7 +454,9 @@ class RunQueueData: 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) |