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>
This commit is contained in:
Irina Patru 2014-01-21 17:59:36 +02:00 committed by Richard Purdie
parent f43c2d8d79
commit 14e548dbb7
1 changed files with 2 additions and 1 deletions

View File

@ -1245,7 +1245,8 @@ class BBCooker:
return
if self.state in (state.shutdown, state.forceshutdown):
self.parser.shutdown(clean=False, force = True)
if hasattr(self.parser, 'shutdown'):
self.parser.shutdown(clean=False, force = True)
raise bb.BBHandledException()
if self.state != state.parsing: