summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-07-11 11:07:56 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-12 23:10:04 +0100
commitffd295fed4ab81fc0bd00bb145ef4d72c49584bf (patch)
treef375bbc94f9407bf2f4618e6b82dfedc8909562e /scripts/devtool
parent47822a2aff56fd338c16b5ad756feda9f395a8a1 (diff)
downloadopenembedded-core-ffd295fed4ab81fc0bd00bb145ef4d72c49584bf.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. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool2
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():
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)