[OE-core] [PATCH 2/2] wic: Initialize return values in find_artifacts()
Tom Zanussi
tom.zanussi at linux.intel.com
Fri Oct 18 04:45:38 UTC 2013
If one of these isn't found, it won't be initialized and will throw an
UnboundLocalError.
Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
---
scripts/lib/image/engine.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py
index be29222..b3a9c74 100644
--- a/scripts/lib/image/engine.py
+++ b/scripts/lib/image/engine.py
@@ -82,6 +82,8 @@ def find_artifacts(image_name):
print "Couldn't get '%s' output, exiting." % bitbake_env_cmd
sys.exit(1)
+ rootfs_dir = kernel_dir = hdddir = staging_data_dir = native_sysroot = ""
+
for line in bitbake_env_lines.split('\n'):
if (get_line_val(line, "IMAGE_ROOTFS")):
rootfs_dir = get_line_val(line, "IMAGE_ROOTFS")
--
1.7.11.4
More information about the Openembedded-core
mailing list