diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-29 12:45:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-29 12:47:29 +0000 |
commit | 3791d7ef604bdea8589b880a3b09bf002e453e85 (patch) | |
tree | f4c442c2d581aed58064c6db226ea22d027a44f0 /bitbake/lib/bb | |
parent | 907e91796ed4156cafcbd3ee60edaa9544f0abe3 (diff) | |
download | poky-3791d7ef604bdea8589b880a3b09bf002e453e85.tar.gz |
bitbake: cooker: Ensure cache is cleared for partial resets
We're still seeing occasional SiggenRecipeInfo coherency issues, add
some further reset points into the parsing code to ensure the cache is
cleared before reparsing.
(Bitbake rev: 26ed783caf11dc9ebf53d3790681eb44c0c360f0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index b81f8e0c59..4e49b0e90b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -2186,6 +2186,8 @@ class CookerParser(object): | |||
2186 | self.haveshutdown = False | 2186 | self.haveshutdown = False |
2187 | self.syncthread = None | 2187 | self.syncthread = None |
2188 | 2188 | ||
2189 | bb.cache.SiggenRecipeInfo.reset() | ||
2190 | |||
2189 | def start(self): | 2191 | def start(self): |
2190 | self.results = self.load_cached() | 2192 | self.results = self.load_cached() |
2191 | self.processes = [] | 2193 | self.processes = [] |
@@ -2382,6 +2384,7 @@ class CookerParser(object): | |||
2382 | return True | 2384 | return True |
2383 | 2385 | ||
2384 | def reparse(self, filename): | 2386 | def reparse(self, filename): |
2387 | bb.cache.SiggenRecipeInfo.reset() | ||
2385 | to_reparse = set() | 2388 | to_reparse = set() |
2386 | for mc in self.cooker.multiconfigs: | 2389 | for mc in self.cooker.multiconfigs: |
2387 | to_reparse.add((mc, filename, self.cooker.collections[mc].get_file_appends(filename))) | 2390 | to_reparse.add((mc, filename, self.cooker.collections[mc].get_file_appends(filename))) |