From a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 29 Jul 2009 14:08:05 +0100 Subject: bitbake runqueue: Add a minor speedup to the runqueue code Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 20187f3..cce5da4 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -463,9 +463,10 @@ class RunQueue: for task in range(len(self.runq_fnid)): fnid = self.runq_fnid[task] if fnid not in reccumdepends: - reccumdepends[fnid] = set() if fnid in tdepends_fnid: - reccumdepends[fnid].update(tdepends_fnid[fnid]) + reccumdepends[fnid] = tdepends_fnid[fnid] + else: + reccumdepends[fnid] = set() reccumdepends[fnid].update(self.runq_depends[task]) for task in range(len(self.runq_fnid)): taskfnid = self.runq_fnid[task] -- cgit v1.1