diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-08 09:41:03 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-07-26 10:13:54 -0300 |
commit | 104bf8583354a9861cd391e0574c879fcb03db78 (patch) | |
tree | 0d4b69f4e9c21acf096f80b8f70f8a7ceeb2f89a | |
parent | 214aaa802b48d53248b5b6cc1dba3b77d8bd61bf (diff) | |
download | tizen-distro-104bf8583354a9861cd391e0574c879fcb03db78.tar.gz tizen-distro-104bf8583354a9861cd391e0574c879fcb03db78.tar.bz2 tizen-distro-104bf8583354a9861cd391e0574c879fcb03db78.zip |
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: 923fc5ee0ace02cc29110bff502a2c65e6bdebf0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index a900b07a80..8e6d91bc50 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/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() |