diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-26 12:53:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-27 09:37:11 +0000 |
commit | b9b5b5129d066e1ff7d3effda116afc3c6657beb (patch) | |
tree | 89ef75e5c3eaa423a5ec6e5be1bcb082a3146781 /lib/bb/runqueue.py | |
parent | 175c5c8a5e51365aa127562e8598e84f5cd36495 (diff) | |
download | bitbake-b9b5b5129d066e1ff7d3effda116afc3c6657beb.tar.gz |
runqueue.py: Fix missing setscene dependencies
When constructing the setscene inter-dependencies, we need to account for all task,
not just the last one found. This patch corrects this oversight and ensures all
dependencies are added, not just the first one found.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index defdd9192..82569757b 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1440,18 +1440,20 @@ class RunQueueExecuteScenequeue(RunQueueExecute): sq_revdeps.append(copy.copy(self.rqdata.runq_revdeps[task])) sq_revdeps_new.append(set()) if (len(self.rqdata.runq_revdeps[task]) == 0) and task not in self.rqdata.runq_setscene: - endpoints[task] = None + endpoints[task] = set() for task in self.rqdata.runq_setscene: for dep in self.rqdata.runq_depends[task]: - endpoints[dep] = task + if dep not in endpoints: + endpoints[dep] = set() + endpoints[dep].add(task) def process_endpoints(endpoints): newendpoints = {} for point, task in endpoints.items(): tasks = set() if task: - tasks.add(task) + tasks |= task if sq_revdeps_new[point]: tasks |= sq_revdeps_new[point] sq_revdeps_new[point] = set() |