[oe-commits] Christopher Larson : recipetool: catch BBHandledException from parsing
git at git.openembedded.org
git at git.openembedded.org
Fri Jul 24 07:42:20 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 1a86529d85b0c764fe41d8ca0526c0f1c2a73568
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1a86529d85b0c764fe41d8ca0526c0f1c2a73568
Author: Christopher Larson <kergoth at gmail.com>
Date: Mon Jun 29 08:20:19 2015 -0700
recipetool: catch BBHandledException from parsing
This ensures that we don't see a traceback on parsing failures.
Signed-off-by: Christopher Larson <kergoth at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/recipetool | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/scripts/recipetool b/scripts/recipetool
index c68bef4..3063cf7 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
More information about the Openembedded-commits
mailing list