diff options
author | Christopher Larson <kergoth@gmail.com> | 2015-06-29 08:20:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-27 12:28:12 +0100 |
commit | 22ba003f62a321c3b8405a03d6c9ee04dc0a62a6 (patch) | |
tree | 234ae1bd6595079a5d7e20836a4917d80998ef63 /scripts | |
parent | 03d01393d14b7b20dcb40ff89b1628883fd3b545 (diff) | |
download | openembedded-core-22ba003f62a321c3b8405a03d6c9ee04dc0a62a6.tar.gz openembedded-core-22ba003f62a321c3b8405a03d6c9ee04dc0a62a6.tar.bz2 openembedded-core-22ba003f62a321c3b8405a03d6c9ee04dc0a62a6.zip |
recipetool: catch BBHandledException from parsing
This ensures that we don't see a traceback on parsing failures.
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/recipetool | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/recipetool b/scripts/recipetool index c68bef4c96..3063cf7c43 100755 --- a/scripts/recipetool +++ b/scripts/recipetool @@ -82,9 +82,11 @@ def main(): scriptutils.logger_setup_color(logger, args.color) - tinfoil_init(getattr(args, 'parserecipes', False)) - - ret = args.func(args) + try: + tinfoil_init(getattr(args, 'parserecipes', False)) + ret = args.func(args) + except bb.BBHandledException: + ret = 1 return ret |