summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-21 12:01:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:18 +0000
commite3c64a90d7735c061bc4c407519ab7ae6ba3d755 (patch)
tree9239e00e594f170dfd4450c112bacfdb91d353b3 /scripts
parent97b07710c361dadb3da49f460a54c3856e653df3 (diff)
downloadpoky-e3c64a90d7735c061bc4c407519ab7ae6ba3d755.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/utils/misc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py
index 6769e3936d..216ab7b6ce 100644
--- a/scripts/lib/wic/utils/misc.py
+++ b/scripts/lib/wic/utils/misc.py
@@ -121,6 +121,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3, pseudo=""):
121 ret, out = _exec_cmd(native_cmd_and_args, True, catch) 121 ret, out = _exec_cmd(native_cmd_and_args, True, catch)
122 else: 122 else:
123 ret = 127 123 ret = 127
124 out = "can't find native executable %s in %s" % (args[0], native_paths)
124 125
125 prog = args[0] 126 prog = args[0]
126 # shell command-not-found 127 # shell command-not-found