aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/image
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2013-10-17 23:45:38 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-18 15:50:41 +0100
commitce6c3ec0e5f4822e85b8f957e9e31fa9de438c55 (patch)
treed0ac23a5ed152d3aabdab6a2ec2038925ae19c68 /scripts/lib/image
parenta5b9ccadc0603c70c65f74fa386995c585a951db (diff)
downloadopenembedded-core-contrib-ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55.tar.gz
openembedded-core-contrib-ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55.tar.bz2
openembedded-core-contrib-ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55.zip
wic: Initialize return values in find_artifacts()
If one of these isn't found, it won't be initialized and will throw an UnboundLocalError. Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/image')
-rw-r--r--scripts/lib/image/engine.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py
index be29222df1..b3a9c7486e 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")