diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-05 09:13:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:55:38 +0100 |
commit | 9e3e933321d58c04619a585326fb291dbf2748f5 (patch) | |
tree | 9446f4c8910388e362e6a5e7c5aa8122e642e879 /scripts/lib/wic/utils/oe | |
parent | 7467fd446d08704881325577b7035b6128db6151 (diff) | |
download | openembedded-core-9e3e933321d58c04619a585326fb291dbf2748f5.tar.gz openembedded-core-9e3e933321d58c04619a585326fb291dbf2748f5.tar.bz2 openembedded-core-9e3e933321d58c04619a585326fb291dbf2748f5.zip |
wic: move checks to exec_native_cmd
Checked for return code and output of native commands
inside exec_native_cmd.
Removed similar code from a lot of places where
exec_native_cmd is called.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/utils/oe')
-rw-r--r-- | scripts/lib/wic/utils/oe/misc.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index 9eaf039f95..f08ff15a34 100644 --- a/scripts/lib/wic/utils/oe/misc.py +++ b/scripts/lib/wic/utils/oe/misc.py @@ -86,6 +86,12 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3): msger.error("A native program %s required to build the image " "was not found (see details above). Please make sure " "it's installed and try again." % args[0]) + if out: + msger.debug('"%s" output: %s' % (args[0], out)) + + if rc != 0: + msger.error("exec_cmd: '%s' returned '%s' instead of 0" % \ + (cmd_and_args, rc)) return (rc, out) |