diff options
author | Chris Larson <clarson@kergoth.com> | 2010-04-06 08:52:54 -0700 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2010-04-06 08:52:55 -0700 |
commit | bf58d43444642d31293a341ce72292003ca5c162 (patch) | |
tree | 4505dd592595cae5e98f82f36191ccfb09a09bc3 | |
parent | 0c2ed40277e157406ea25c858f14c3cebb73c21b (diff) | |
download | bitbake-bf58d43444642d31293a341ce72292003ca5c162.tar.gz |
Pass the config metadata into the Cache constructor rather than the cooker
Cache only uses the config metadata from the cooker, no need for the cooker itself.
Signed-off-by: Chris Larson <clarson@kergoth.com>
-rw-r--r-- | lib/bb/cache.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py index 1f180012e..f3ba714d4 100644 --- a/lib/bb/cache.py +++ b/lib/bb/cache.py @@ -44,10 +44,10 @@ class Cache: """ BitBake Cache implementation """ - def __init__(self, cooker): + def __init__(self, data): - self.cachedir = bb.data.getVar("CACHE", cooker.configuration.data, True) + self.cachedir = bb.data.getVar("CACHE", data, True) self.clean = {} self.checked = {} self.depends_cache = {} @@ -72,7 +72,7 @@ class Cache: # If any of configuration.data's dependencies are newer than the # cache there isn't even any point in loading it... newest_mtime = 0 - deps = bb.data.getVar("__depends", cooker.configuration.data, True) + deps = bb.data.getVar("__depends", data, True) for f,old_mtime in deps: if old_mtime > newest_mtime: newest_mtime = old_mtime @@ -486,7 +486,7 @@ def init(cooker): Files causing parsing errors are evicted from the cache. """ - return Cache(cooker) + return Cache(cooker.configuration.data) |