From 14e548dbb7a38cac3186b429ac2f17252c97a297 Mon Sep 17 00:00:00 2001 From: Irina Patru Date: Tue, 21 Jan 2014 17:59:36 +0200 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb') 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: 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: -- cgit v1.2.3-54-g00ecf