From: Holger Freyther Date: Sun, 17 May 2009 03:59:06 +0000 (+0200) Subject: bitbake: [cache] copy instead of deepcopy in sync X-Git-Tag: 2011-1~6202 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=defa54dea07a614c6ca0fe85512ab3d41d5d7edc;p=openembedded-core.git 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 --- 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: version_data['CACHE_VER'] = __cache_version__ version_data['BITBAKE_VER'] = bb.__version__ - cache_data = copy.deepcopy(self.depends_cache) + cache_data = copy.copy(self.depends_cache) for fn in self.depends_cache: if '__BB_DONT_CACHE' in self.depends_cache[fn] and self.depends_cache[fn]['__BB_DONT_CACHE']: bb.msg.debug(2, bb.msg.domain.Cache, "Not caching %s, marked as not cacheable" % fn)