summaryrefslogtreecommitdiffstats
path: root/lib/bb/cache.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-25 14:57:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-27 10:30:35 +0000
commit9f7978ca4d59b92721de508113dbac30721014d9 (patch)
treec742420397d453629946503aadd891ae5763892c /lib/bb/cache.py
parent5ace320ccc01f4e326f90b7ba060dcbff3380dca (diff)
downloadopenembedded-core-contrib-9f7978ca4d59b92721de508113dbac30721014d9.tar.gz
Update users of getVar/setVar to use the data store functions directly
(From Poky rev: affd0907253387cee0ba0c7e9f92bcc109895446) 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, 2 insertions, 3 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index fe35e132e9..6b7fa6f1a2 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -31,7 +31,6 @@
import os
import logging
from collections import defaultdict
-import bb.data
import bb.utils
logger = logging.getLogger("BitBake.Cache")
@@ -260,7 +259,7 @@ class Cache(object):
# It will be used in later for deciding whether we
# need extra cache file dump/load support
self.caches_array = caches_array
- self.cachedir = bb.data.getVar("CACHE", data, True)
+ self.cachedir = data.getVar("CACHE", True)
self.clean = set()
self.checked = set()
self.depends_cache = {}
@@ -283,7 +282,7 @@ class Cache(object):
# 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("__base_depends", data)
+ deps = data.getVar("__base_depends")
old_mtimes = [old_mtime for _, old_mtime in deps]
old_mtimes.append(newest_mtime)