From patchwork Tue Aug 28 15:11:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] taskdata: Don't add dependencies on tasks that don't exist Date: Tue, 28 Aug 2012 15:11:34 -0000 From: Richard Purdie X-Patchwork-Id: 35455 Message-Id: <1346166694.23096.0.camel@ted> To: bitbake-devel "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 --- diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py index aed3a16..c08186a 100644 --- a/bitbake/lib/bb/taskdata.py +++ b/bitbake/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)