diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 14:08:05 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 14:08:05 +0100 |
commit | a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b (patch) | |
tree | 3de844ec6d94ca0bb3a503cc56479cd05fc90161 /bitbake/lib/bb | |
parent | 9930c668c032cb4e0621b3134b46b256b52b8a01 (diff) | |
download | openembedded-core-a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b.tar.gz openembedded-core-a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b.tar.bz2 openembedded-core-a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b.tar.xz openembedded-core-a6d608eb19e9b2ad2a75efe9b99a4d9c2940fc9b.zip |
bitbake runqueue: Add a minor speedup to the runqueue code
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 20187f321..cce5da405 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] |