mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
wic: Initialize return values in find_artifacts()
If one of these isn't found, it won't be initialized and will throw an UnboundLocalError. (From OE-Core rev: ce6c3ec0e5f4822e85b8f957e9e31fa9de438c55) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e22efb497a
commit
67378fbcbe
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user