diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-10-17 23:45:38 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-18 15:50:41 +0100 |
commit | ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55 (patch) | |
tree | d0ac23a5ed152d3aabdab6a2ec2038925ae19c68 /scripts/lib | |
parent | a5b9ccadc0603c70c65f74fa386995c585a951db (diff) | |
download | openembedded-core-contrib-ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55.tar.gz |
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')
-rw-r--r-- | scripts/lib/image/engine.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index be29222df12..b3a9c7486ec 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") |