diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-15 22:06:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-20 08:31:28 +0000 |
commit | 3a4aeda0fa67ae4a2f8c79e83c734b45dde95543 (patch) | |
tree | e420d1a34403c3cc956f79d91a633dcd5c56f797 /bitbake/lib/bb/command.py | |
parent | 16ad67809b9b9cc67dfa863de7605126793f31ae (diff) | |
download | poky-3a4aeda0fa67ae4a2f8c79e83c734b45dde95543.tar.gz |
bitbake: cache/cookerdata: Move recipe parsing functions from cache to databuilder
When 'NoCache' was written, databuilder/cookerdata didn't exist. It does
now and the recipe parsing functionality contained in NoCache clearly
belongs there, it isn't a cache function. Move those functions, renaming
to match the style in databuilder but otherwise not changing functionality
for now. Fix up the callers to match (which make it clear this is the right
move).
(Bitbake rev: 783879319c6a4cf3639fcbf763b964e42f602eca)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index ec86885220..fa9fd054c2 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -567,8 +567,7 @@ class CommandsSync: | |||
567 | envdata = bb.cache.parse_recipe(config_data, fn, appendfiles, mc)[''] | 567 | envdata = bb.cache.parse_recipe(config_data, fn, appendfiles, mc)[''] |
568 | else: | 568 | else: |
569 | # Use the standard path | 569 | # Use the standard path |
570 | parser = bb.cache.NoCache(command.cooker.databuilder) | 570 | envdata = command.cooker.databuilder.parseRecipe(fn, appendfiles) |
571 | envdata = parser.loadDataFull(fn, appendfiles) | ||
572 | idx = command.remotedatastores.store(envdata) | 571 | idx = command.remotedatastores.store(envdata) |
573 | return DataStoreConnectionHandle(idx) | 572 | return DataStoreConnectionHandle(idx) |
574 | parseRecipeFile.readonly = True | 573 | parseRecipeFile.readonly = True |