summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorIrina Patru <irina.patru@intel.com>2014-01-21 17:59:36 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:57 +0000
commit14e548dbb7a38cac3186b429ac2f17252c97a297 (patch)
treecae2e8100e556bcbbc9f0ed399c35e66357695cb /bitbake
parentf43c2d8d791cebfa7acdfa3bd8f4f722b607386e (diff)
downloadpoky-14e548dbb7a38cac3186b429ac2f17252c97a297.tar.gz
bitbake: bitbake: hob: check if parser has attribute 'shutdown'
It must be checked first if parser has the attribute 'shutdown' when user hits Stop button and the forceshutdown state is given. [HOB #5579] (Bitbake rev: 46943b442ea4fa778f70590b6dcce483595efaf8) Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index cc7d84ef71..96f05b5309 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1245,7 +1245,8 @@ class BBCooker:
1245 return 1245 return
1246 1246
1247 if self.state in (state.shutdown, state.forceshutdown): 1247 if self.state in (state.shutdown, state.forceshutdown):
1248 self.parser.shutdown(clean=False, force = True) 1248 if hasattr(self.parser, 'shutdown'):
1249 self.parser.shutdown(clean=False, force = True)
1249 raise bb.BBHandledException() 1250 raise bb.BBHandledException()
1250 1251
1251 if self.state != state.parsing: 1252 if self.state != state.parsing: