diff options
| author | Chris Larson <clarson@kergoth.com> | 2010-04-06 08:52:54 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:31 +0100 |
| commit | 2cd161171a245aa758aa14ea3711defc5f60400d (patch) | |
| tree | 0bfc7a658fa7930435645990f4008204c5e9fd0b /bitbake/lib/bb/cache.py | |
| parent | c926e87f47bfef1a367cac732b64a07a2415c91e (diff) | |
| download | poky-2cd161171a245aa758aa14ea3711defc5f60400d.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.
(Bitbake rev: bf58d43444642d31293a341ce72292003ca5c162)
Signed-off-by: Chris Larson <clarson@kergoth.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
| -rw-r--r-- | bitbake/lib/bb/cache.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 1f180012e0..f3ba714d46 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
| @@ -44,10 +44,10 @@ class Cache: | |||
| 44 | """ | 44 | """ |
| 45 | BitBake Cache implementation | 45 | BitBake Cache implementation |
| 46 | """ | 46 | """ |
| 47 | def __init__(self, cooker): | 47 | def __init__(self, data): |
| 48 | 48 | ||
| 49 | 49 | ||
| 50 | self.cachedir = bb.data.getVar("CACHE", cooker.configuration.data, True) | 50 | self.cachedir = bb.data.getVar("CACHE", data, True) |
| 51 | self.clean = {} | 51 | self.clean = {} |
| 52 | self.checked = {} | 52 | self.checked = {} |
| 53 | self.depends_cache = {} | 53 | self.depends_cache = {} |
| @@ -72,7 +72,7 @@ class Cache: | |||
| 72 | # If any of configuration.data's dependencies are newer than the | 72 | # If any of configuration.data's dependencies are newer than the |
| 73 | # cache there isn't even any point in loading it... | 73 | # cache there isn't even any point in loading it... |
| 74 | newest_mtime = 0 | 74 | newest_mtime = 0 |
| 75 | deps = bb.data.getVar("__depends", cooker.configuration.data, True) | 75 | deps = bb.data.getVar("__depends", data, True) |
| 76 | for f,old_mtime in deps: | 76 | for f,old_mtime in deps: |
| 77 | if old_mtime > newest_mtime: | 77 | if old_mtime > newest_mtime: |
| 78 | newest_mtime = old_mtime | 78 | newest_mtime = old_mtime |
| @@ -486,7 +486,7 @@ def init(cooker): | |||
| 486 | Files causing parsing errors are evicted from the cache. | 486 | Files causing parsing errors are evicted from the cache. |
| 487 | 487 | ||
| 488 | """ | 488 | """ |
| 489 | return Cache(cooker) | 489 | return Cache(cooker.configuration.data) |
| 490 | 490 | ||
| 491 | 491 | ||
| 492 | 492 | ||
