]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: [cache] copy instead of deepcopy in sync
authorHolger Freyther <ich@tamarin.(none)>
Sun, 17 May 2009 03:59:06 +0000 (05:59 +0200)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 15 Feb 2010 17:07:58 +0000 (17:07 +0000)
We only intend to modify the dict, no need to copy all
elements.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/cache.py

index 2f1b8fa601131c8e8a566c89eefdafeb7979504f..43091daa26ed11f54a3cda5e075a7f31ded63e24 100644 (file)
@@ -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)