From: Irina Patru Date: Tue, 21 Jan 2014 15:59:36 +0000 (+0200) Subject: bitbake: hob: check if parser has attribute 'shutdown' X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46943b442ea4fa778f70590b6dcce483595efaf8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Irina Patru Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index cc7d84ef71f..96f05b5309b 100644 --- a/lib/bb/cooker.py +++ b/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: