]> code.ossystems Code Review - openembedded-core.git/commitdiff
bb.cache: fix bug from last commit with loading from cache
authorChris Larson <chris_larson@mentor.com>
Fri, 24 Sep 2010 14:44:23 +0000 (07:44 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:36 +0000 (14:46 +0000)
(Bitbake rev: 99c324fe7395a44da78403c615797104413503a5)

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

index 7ec55bc1be0a1061d50b787be2793ceaffa81e5e..dc787daf064ad3694ac7f6f311d0e1a294e73418 100644 (file)
@@ -107,7 +107,7 @@ class Cache:
              backend but add a copy of the data to the cache.
         """
         if fn in self.clean:
-            return self.depends_cache[fn][var]
+            return self.depends_cache[fn].get(var)
 
         self.depends_cache.setdefault(fn, {})