[bitbake-devel] [PATCH 2/4] bitbake: hob: check if parser has attribute 'shutdown'
Irina Patru
irina.patru at intel.com
Tue Jan 21 15:59:36 UTC 2014
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 <irina.patru at intel.com>
---
bitbake/lib/bb/cooker.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index db4cb51..3cf019b 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1240,7 +1240,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:
--
1.7.9.5
More information about the bitbake-devel
mailing list