diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:57:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:35:30 +0000 |
| commit | 4cd96710785eb05abeff1f281878655118d4a7dd (patch) | |
| tree | f2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/lib/bb/cache.py | |
| parent | 0a434ac10158e2011d41a1189e65e9474b1672be (diff) | |
| download | poky-4cd96710785eb05abeff1f281878655118d4a7dd.tar.gz | |
bitbake: Update users of getVar/setVar to use the data store functions directly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
| -rw-r--r-- | bitbake/lib/bb/cache.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
| 31 | import os | 31 | import os |
| 32 | import logging | 32 | import logging |
| 33 | from collections import defaultdict | 33 | from collections import defaultdict |
| 34 | import bb.data | ||
| 35 | import bb.utils | 34 | import bb.utils |
| 36 | 35 | ||
| 37 | logger = logging.getLogger("BitBake.Cache") | 36 | logger = logging.getLogger("BitBake.Cache") |
| @@ -260,7 +259,7 @@ class Cache(object): | |||
| 260 | # It will be used in later for deciding whether we | 259 | # It will be used in later for deciding whether we |
| 261 | # need extra cache file dump/load support | 260 | # need extra cache file dump/load support |
| 262 | self.caches_array = caches_array | 261 | self.caches_array = caches_array |
| 263 | self.cachedir = bb.data.getVar("CACHE", data, True) | 262 | self.cachedir = data.getVar("CACHE", True) |
| 264 | self.clean = set() | 263 | self.clean = set() |
| 265 | self.checked = set() | 264 | self.checked = set() |
| 266 | self.depends_cache = {} | 265 | self.depends_cache = {} |
| @@ -283,7 +282,7 @@ class Cache(object): | |||
| 283 | # If any of configuration.data's dependencies are newer than the | 282 | # If any of configuration.data's dependencies are newer than the |
| 284 | # cache there isn't even any point in loading it... | 283 | # cache there isn't even any point in loading it... |
| 285 | newest_mtime = 0 | 284 | newest_mtime = 0 |
| 286 | deps = bb.data.getVar("__base_depends", data) | 285 | deps = data.getVar("__base_depends") |
| 287 | 286 | ||
| 288 | old_mtimes = [old_mtime for _, old_mtime in deps] | 287 | old_mtimes = [old_mtime for _, old_mtime in deps] |
| 289 | old_mtimes.append(newest_mtime) | 288 | old_mtimes.append(newest_mtime) |
