mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
77e9243210
commit
dec9156ce8
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user