diff options
| author | Christopher Larson <chris_larson@mentor.com> | 2012-01-31 11:47:07 -0600 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-01 15:08:42 +0000 | 
| commit | 38daf8b7eb47915c05aae3edf3125241b5afbe8d (patch) | |
| tree | ab71b9969625191a969b62e0aa75a09d4a8847fe /bitbake/lib/bb/cooker.py | |
| parent | 555262744d2e20e643a4d0888515327352872ba0 (diff) | |
| download | poky-38daf8b7eb47915c05aae3edf3125241b5afbe8d.tar.gz | |
cooker: add missing shutdowns to the exception handling
(Bitbake rev: c9f58ef6b897d3fa5b0d23734b5f2cb3dabb057a)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 652cd5d5c2..7dab38e287 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1507,8 +1507,10 @@ class CookerParser(object): | |||
| 1507 | bb.fatal('Unable to parse %s: %s' % | 1507 | bb.fatal('Unable to parse %s: %s' % | 
| 1508 | (exc.recipe, bb.exceptions.to_string(exc.realexception))) | 1508 | (exc.recipe, bb.exceptions.to_string(exc.realexception))) | 
| 1509 | except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc: | 1509 | except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc: | 
| 1510 | self.shutdown(clean=False) | ||
| 1510 | bb.fatal(str(exc)) | 1511 | bb.fatal(str(exc)) | 
| 1511 | except SyntaxError as exc: | 1512 | except SyntaxError as exc: | 
| 1513 | self.shutdown(clean=False) | ||
| 1512 | logger.error('Unable to parse %s', exc.recipe) | 1514 | logger.error('Unable to parse %s', exc.recipe) | 
| 1513 | sys.exit(1) | 1515 | sys.exit(1) | 
| 1514 | except Exception as exc: | 1516 | except Exception as exc: | 
