diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-07-11 11:07:56 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-12 23:10:15 +0100 |
commit | 5c91537ab250e823b362bf5cc94760d26c6a4429 (patch) | |
tree | 3e992f843c3a739068b1e5d305356b708bc122bc /scripts/devtool | |
parent | d56caf3408d6200d51dff62eae51ffb137ae7393 (diff) | |
download | poky-5c91537ab250e823b362bf5cc94760d26c6a4429.tar.gz |
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 <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-x | scripts/devtool | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/devtool b/scripts/devtool index a93a11f341..b1274d69d8 100755 --- a/scripts/devtool +++ b/scripts/devtool | |||
@@ -334,7 +334,7 @@ def main(): | |||
334 | except DevtoolError as err: | 334 | except DevtoolError as err: |
335 | if str(err): | 335 | if str(err): |
336 | logger.error(str(err)) | 336 | logger.error(str(err)) |
337 | ret = 1 | 337 | ret = err.exitcode |
338 | except argparse_oe.ArgumentUsageError as ae: | 338 | except argparse_oe.ArgumentUsageError as ae: |
339 | parser.error_subcommand(ae.message, ae.subcommand) | 339 | parser.error_subcommand(ae.message, ae.subcommand) |
340 | 340 | ||