summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Freyther <ich@tamarin.(none)>2009-05-17 05:59:06 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-15 17:07:58 +0000
commitdefa54dea07a614c6ca0fe85512ab3d41d5d7edc (patch)
treeeb7f3d424db937ba0ef3dbfb2adcb20ecda42735
parentf03769280cb8a5f75b975ef4696dd7470d6562b2 (diff)
downloadpoky-defa54dea07a614c6ca0fe85512ab3d41d5d7edc.tar.gz
bitbake: [cache] copy instead of deepcopy in sync
We only intend to modify the dict, no need to copy all elements. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 2f1b8fa601..43091daa26 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -328,7 +328,7 @@ class Cache:
328 version_data['CACHE_VER'] = __cache_version__ 328 version_data['CACHE_VER'] = __cache_version__
329 version_data['BITBAKE_VER'] = bb.__version__ 329 version_data['BITBAKE_VER'] = bb.__version__
330 330
331 cache_data = copy.deepcopy(self.depends_cache) 331 cache_data = copy.copy(self.depends_cache)
332 for fn in self.depends_cache: 332 for fn in self.depends_cache:
333 if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']: 333 if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']:
334 bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn) 334 bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn)