[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4929/8267] wic: exec_native_cmd: fix undefined variable error
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4929/8267] wic: exec_native_cmd: fix undefined variable error
- Date: Sun, 17 Dec 2017 02:43:33 +0000 (UTC)
commit e3c64a90d7735c061bc4c407519ab7ae6ba3d755
Author: Ed Bartosh <ed bartosh linux intel com>
Date: 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
(From OE-Core rev: d994340ec32ec04226ec185a8998775602c8b8bf)
Signed-off-by: Ed Bartosh <ed bartosh linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
scripts/lib/wic/utils/misc.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]