From 1393e224b51d07297f615cc53dab4ef3bab72770 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 8 Jan 2015 09:41:03 +0000 Subject: bitbake: cooker: Shut down the parser in error state If the cooker is in an error state, we shouldn't continue to try parsing. This fixes an issue where an invalid PR server is detected when bitbake is started and ensures bitbake exits cleanly rather than hanging. [YOCTO #6934] (Bitbake rev: 294bb9cad294423d4f8998405ceff58655f12660) Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0d9b85e604..23e7abda39 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1355,7 +1355,7 @@ class BBCooker: if self.state == state.running: return - if self.state in (state.shutdown, state.forceshutdown): + if self.state in (state.shutdown, state.forceshutdown, state.error): if hasattr(self.parser, 'shutdown'): self.parser.shutdown(clean=False, force = True) raise bb.BBHandledException() -- cgit v1.2.3-54-g00ecf