aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/cache.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-15 18:01:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:23:01 +0100
commit7da062956bf40c1b9ac1aaee222a13f40bba9b19 (patch)
tree09bb12e9484383c8fc4e4570f9e99086b4397b6c /lib/bb/cache.py
parent6d06e93c6a2204af6d2cf747a4610bd0eeb9f202 (diff)
downloadbitbake-7da062956bf40c1b9ac1aaee222a13f40bba9b19.tar.gz
cache/cooker: Pass databuilder into bb.cache.Cache()
Rather that the current mix of static and class methods, refactor so that the cache has the databuilder object internally. This becomes useful for the following patches for multi config support. It effectively completes some of the object oriented work we've been working towards in the bitbake core for a while. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cache.py')
-rw-r--r--lib/bb/cache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index c915bb93f..7118c83f7 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -270,7 +270,9 @@ class Cache(object):
BitBake Cache implementation
"""
- def __init__(self, data, data_hash, caches_array):
+ def __init__(self, databuilder, data_hash, caches_array):
+ data = databuilder.data
+
# Pass caches_array information into Cache Constructor
# It will be used later for deciding whether we
# need extra cache file dump/load support
@@ -279,7 +281,6 @@ class Cache(object):
self.clean = set()
self.checked = set()
self.depends_cache = {}
- self.data = None
self.data_fn = None
self.cacheclean = True
self.data_hash = data_hash