summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils/oe
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-05 09:13:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:59:11 +0100
commitdec9156ce86eb00153493d3d49344f0623ec4562 (patch)
tree86a74bda320f47dbfd9c4d1df8cd9082d42e3db9 /scripts/lib/wic/utils/oe
parent77e9243210b2283a5fbd3f40e7823a211d2be233 (diff)
downloadpoky-dec9156ce86eb00153493d3d49344f0623ec4562.tar.gz
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. (From OE-Core rev: 9e3e933321d58c04619a585326fb291dbf2748f5) Signed-off-by: Ed Bartosh <ed.bartosh@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/lib/wic/utils/oe')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py6
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):
86 msger.error("A native program %s required to build the image " 86 msger.error("A native program %s required to build the image "
87 "was not found (see details above). Please make sure " 87 "was not found (see details above). Please make sure "
88 "it's installed and try again." % args[0]) 88 "it's installed and try again." % args[0])
89 if out:
90 msger.debug('"%s" output: %s' % (args[0], out))
91
92 if rc != 0:
93 msger.error("exec_cmd: '%s' returned '%s' instead of 0" % \
94 (cmd_and_args, rc))
89 95
90 return (rc, out) 96 return (rc, out)
91 97