From: Chris Larson Date: Fri, 24 Sep 2010 14:44:23 +0000 (-0700) Subject: bb.cache: fix bug from last commit with loading from cache X-Git-Tag: 2011-1~3153 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a964761283f11523be8f80ee10011951a4d68fc0;p=openembedded-core.git bb.cache: fix bug from last commit with loading from cache (Bitbake rev: 99c324fe7395a44da78403c615797104413503a5) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 7ec55bc1be..dc787daf06 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py @@ -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, {})