wic: exec_native_cmd: fix undefined variable error
Defined variable 'out' to fix this exception: UnboundLocalError: local variable 'out' referenced before assignment (From OE-Core rev: d994340ec32ec04226ec185a8998775602c8b8bf) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
97b07710c3
commit
e3c64a90d7
|
@ -121,6 +121,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3, pseudo=""):
|
||||||
ret, out = _exec_cmd(native_cmd_and_args, True, catch)
|
ret, out = _exec_cmd(native_cmd_and_args, True, catch)
|
||||||
else:
|
else:
|
||||||
ret = 127
|
ret = 127
|
||||||
|
out = "can't find native executable %s in %s" % (args[0], native_paths)
|
||||||
|
|
||||||
prog = args[0]
|
prog = args[0]
|
||||||
# shell command-not-found
|
# shell command-not-found
|
||||||
|
|
Loading…
Reference in New Issue