summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-07-21 22:32:35 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-07-21 22:32:35 +0100
commit502bd2ef92f6cddf74ac85279dab621372791dc0 (patch)
treec9d23d051f85a119164d774a0a3c05c4372ec64d /bitbake/lib
parent8f5363d16de17459b654ca780e5bbd6e04b6bb73 (diff)
downloadpoky-502bd2ef92f6cddf74ac85279dab621372791dc0.tar.gz
bitbake: Fix a bug in runqueue and optimise slightly further
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index ebc70ee61c..2f204aea97 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -464,10 +464,9 @@ class RunQueue:
464 fnid = self.runq_fnid[task] 464 fnid = self.runq_fnid[task]
465 if fnid not in reccumdepends: 465 if fnid not in reccumdepends:
466 reccumdepends[fnid] = set() 466 reccumdepends[fnid] = set()
467 if task in self.runq_depends: 467 if fnid in tdepends_fnid:
468 reccumdepends[fnid].update(self.runq_depends[task]) 468 reccumdepends[fnid].update(tdepends_fnid[fnid])
469 if fnid in tdepends_fnid: 469 reccumdepends[fnid].update(self.runq_depends[task])
470 reccumdepends[fnid].update(tdepends_fnid[fnid])
471 for task in range(len(self.runq_fnid)): 470 for task in range(len(self.runq_fnid)):
472 taskfnid = self.runq_fnid[task] 471 taskfnid = self.runq_fnid[task]
473 for fnid in reccumdepends: 472 for fnid in reccumdepends:
@@ -485,6 +484,9 @@ class RunQueue:
485 if len(runq_recrdepends[task]) > 0: 484 if len(runq_recrdepends[task]) > 0:
486 taskfnid = self.runq_fnid[task] 485 taskfnid = self.runq_fnid[task]
487 for dep in reccumdepends[taskfnid]: 486 for dep in reccumdepends[taskfnid]:
487 # Ignore self references
488 if dep == task:
489 continue
488 for taskname in runq_recrdepends[task]: 490 for taskname in runq_recrdepends[task]:
489 if taskData.tasks_name[dep] == taskname: 491 if taskData.tasks_name[dep] == taskname:
490 self.runq_depends[task].add(dep) 492 self.runq_depends[task].add(dep)