diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 14:09:12 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 14:09:12 +0100 |
commit | 47fb695aedc40ce30e10d06829a68c5727352246 (patch) | |
tree | 57914db24e01edcea09c3a34393c8e49a82f51c6 /bitbake-dev/lib/bb | |
parent | a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b (diff) | |
download | openembedded-core-47fb695aedc40ce30e10d06829a68c5727352246.tar.gz openembedded-core-47fb695aedc40ce30e10d06829a68c5727352246.tar.bz2 openembedded-core-47fb695aedc40ce30e10d06829a68c5727352246.tar.xz openembedded-core-47fb695aedc40ce30e10d06829a68c5727352246.zip |
bitbake runqueue: Add a minor speedup to the runqueue code
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb')
-rw-r--r-- | bitbake-dev/lib/bb/runqueue.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake-dev/lib/bb/runqueue.py b/bitbake-dev/lib/bb/runqueue.py index 734f07d4c..8b6e12d18 100644 --- a/bitbake-dev/lib/bb/runqueue.py +++ b/bitbake-dev/lib/bb/runqueue.py @@ -482,9 +482,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] |