diff options
author | 2012-08-28 08:11:34 -0700 | |
---|---|---|
committer | 2012-08-30 17:38:58 -0700 | |
commit | 843d3d6b0a7eb2e2f7b50c555767f5385df16ede (patch) | |
tree | 3c4706e21ac88d75f244995469cee1c8eeb5ba32 /lib/bb/taskdata.py | |
parent | 0cac6d647c58ae449323959220775fc1afd5bfb0 (diff) | |
download | bitbake-contrib-843d3d6b0a7eb2e2f7b50c555767f5385df16ede.tar.gz |
taskdata: Don't add dependencies on tasks that don't exist
"bitbake meta-toolchain" with qemu image testing enabled causes problems
since it adds a task after do_rootfs which doesn't exist in this case.
We should simply ignore these extra dependencies rather than adding
them in which is what this patch does (adding a debug message when this
happens).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/taskdata.py')
-rw-r--r-- | lib/bb/taskdata.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py index aed3a1638..c08186a71 100644 --- a/lib/bb/taskdata.py +++ b/lib/bb/taskdata.py @@ -176,6 +176,9 @@ class TaskData: # Work out task dependencies parentids = [] for dep in task_deps['parents'][task]: + if dep not in task_deps['tasks']: + bb.debug(2, "Not adding dependeny of %s on %s since %s does not exist" % (task, dep, dep)) + continue parentid = self.gettask_id(fn, dep) parentids.append(parentid) taskid = self.gettask_id(fn, task) |