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>
This commit is contained in:
Richard Purdie
2022-12-29 12:45:50 +00:00
parent 907e91796e
commit 3791d7ef60

View File

@@ -2186,6 +2186,8 @@ class CookerParser(object):
self.haveshutdown = False
self.syncthread = None
bb.cache.SiggenRecipeInfo.reset()
def start(self):
self.results = self.load_cached()
self.processes = []
@@ -2382,6 +2384,7 @@ class CookerParser(object):
return True
def reparse(self, filename):
bb.cache.SiggenRecipeInfo.reset()
to_reparse = set()
for mc in self.cooker.multiconfigs:
to_reparse.add((mc, filename, self.cooker.collections[mc].get_file_appends(filename)))