From 5c91537ab250e823b362bf5cc94760d26c6a4429 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 11 Jul 2016 11:07:56 +1200 Subject: devtool: return specific exit code for incompatible recipes Certain recipes cannot be used with devtool extract / modify / upgrade - usually because they don't provide any source. Return a specific exit code (4) so that scripts such as scripts/contrib/devtool-stress.py know the difference between this and a genuine failure. (From OE-Core rev: ffd295fed4ab81fc0bd00bb145ef4d72c49584bf) Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/devtool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/devtool') diff --git a/scripts/devtool b/scripts/devtool index a93a11f341..b1274d69d8 100755 --- a/scripts/devtool +++ b/scripts/devtool @@ -334,7 +334,7 @@ def main(): except DevtoolError as err: if str(err): logger.error(str(err)) - ret = 1 + ret = err.exitcode except argparse_oe.ArgumentUsageError as ae: parser.error_subcommand(ae.message, ae.subcommand) -- cgit v1.2.3-54-g00ecf