[oe-commits] [bitbake] 01/01: cooker: Reset parse status unpon clientComplete
git at git.openembedded.org
git at git.openembedded.org
Sun Mar 1 15:23:51 UTC 2020
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 3c5bca4fce0f3026ce5166db00e885358c847390
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sun Mar 1 10:54:55 2020 +0000
cooker: Reset parse status unpon clientComplete
If for example a tinfoil connection edits the datastore, a subsequent
connection can be "corrupted" by those changes. By setting the parse
status of the caches as False at exit, the behaviour becomes the same
as a newly setup server as a new data store is setup.
This avoids problems in tests when BB_SERVER_TIMEOUT is set as the
server is properly reset between connections.
[YOCTO #13812]
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2d937a4..bda6d1b 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1665,6 +1665,8 @@ class BBCooker:
self.command.reset()
self.databuilder.reset()
self.data = self.databuilder.data
+ self.parsecache_valid = False
+ self.baseconfig_valid = False
class CookerExit(bb.event.Event):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list