summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-01-31 11:47:07 -0600
committerChristopher Larson <chris_larson@mentor.com>2012-01-31 11:47:07 -0600
commitc9f58ef6b897d3fa5b0d23734b5f2cb3dabb057a (patch)
tree7072a854bb7fca85eff594078b89406d12df7fa0 /lib
parente1b157d26374a70e6274edcb4c0b9f3bc48f765c (diff)
downloadbitbake-contrib-c9f58ef6b897d3fa5b0d23734b5f2cb3dabb057a.tar.gz
cooker: add missing shutdowns to the exception handling
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index b6bd7400f..ac99e914d 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1519,8 +1519,10 @@ class CookerParser(object):
bb.fatal('Unable to parse %s: %s' %
(exc.recipe, bb.exceptions.to_string(exc.realexception)))
except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc:
+ self.shutdown(clean=False)
bb.fatal(str(exc))
except SyntaxError as exc:
+ self.shutdown(clean=False)
logger.error('Unable to parse %s', exc.recipe)
sys.exit(1)
except Exception as exc: