diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-19 11:46:42 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-11-21 11:24:47 -0700 |
commit | dd0ec2f7b18e2a9ab06c499b775670516bd06ac8 (patch) | |
tree | fdb6936690712f275545b244614efa82b954cd3a /lib/bb/shell.py | |
parent | 7cf7d5f14405681496fced3640a50a20ef1acac1 (diff) | |
download | bitbake-dd0ec2f7b18e2a9ab06c499b775670516bd06ac8.tar.gz |
cooker: stop loading the cache for -b
Previously, the cache was actually being loaded from disk twice whenever using
-b or -e -b. This also moves the bb_cache instance into the CookerParser, as
it's not needed by the cooker itself at all.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/shell.py')
-rw-r--r-- | lib/bb/shell.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/bb/shell.py b/lib/bb/shell.py index c61e93a1c..3319e2d1c 100644 --- a/lib/bb/shell.py +++ b/lib/bb/shell.py @@ -272,9 +272,7 @@ class BitBakeShellCommands: bbfile = params[0] print("SHELL: Parsing '%s'" % bbfile) parse.update_mtime( bbfile ) - cooker.bb_cache.cacheValidUpdate(bbfile) - fromCache = cooker.bb_cache.loadData(bbfile, cooker.configuration.data, cooker.status) - cooker.bb_cache.sync() + cooker.parser.reparse(bbfile) if False: #fromCache: print("SHELL: File has not been updated, not reparsing") else: @@ -443,7 +441,7 @@ SRC_URI = "" name, var = params bbfile = self._findProvider( name ) if bbfile is not None: - the_data = cooker.bb_cache.loadDataFull(bbfile, cooker.configuration.data) + the_data = cache.Cache.loadDataFull(bbfile, cooker.configuration.data) value = the_data.getVar( var, 1 ) print(value) else: |