summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-08 09:41:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-11 17:35:42 +0000
commit923fc5ee0ace02cc29110bff502a2c65e6bdebf0 (patch)
tree8453325948bae70383cda9edd358a493a1cfed97
parent81d90389edd4d4778d3aec86e0775ab98dd1496e (diff)
downloadbitbake-923fc5ee0ace02cc29110bff502a2c65e6bdebf0.tar.gz
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] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index a900b07a8..8e6d91bc5 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1286,7 +1286,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()