From 8c8c2e6665b26c3e3c83f6e97f4b7e95a0e8e3f8 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sun, 17 May 2009 05:59:06 +0200 Subject: [PATCH] [cache] copy instead of deepcopy in sync We only intend to modify the dict, no need to copy all elements. --- lib/bb/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/cache.py b/lib/bb/cache.py index 2f1b8fa6011..43091daa26e 100644 --- a/lib/bb/cache.py +++ b/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) -- 2.47.3