[oe-commits] [openembedded-core] 27/63: wic: exec_native_cmd: fix undefined variable error
git at git.openembedded.org
git at git.openembedded.org
Sat Mar 4 10:46:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit d994340ec32ec04226ec185a8998775602c8b8bf
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Tue Feb 21 12:01:59 2017 +0200
wic: exec_native_cmd: fix undefined variable error
Defined variable 'out' to fix this exception:
UnboundLocalError: local variable 'out' referenced before assignment
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
scripts/lib/wic/utils/misc.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py
index 6769e39..216ab7b 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=""):
ret, out = _exec_cmd(native_cmd_and_args, True, catch)
else:
ret = 127
+ out = "can't find native executable %s in %s" % (args[0], native_paths)
prog = args[0]
# shell command-not-found
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list