From 4cd96710785eb05abeff1f281878655118d4a7dd Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 25 Nov 2011 14:57:53 +0000 Subject: bitbake: Update users of getVar/setVar to use the data store functions directly Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/cache.py') diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index fe35e132e9..6b7fa6f1a2 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/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) -- cgit v1.2.3-54-g00ecf