Relaced the key with the join between path and file name.
[YOCTO #6090]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
for dirpath, dirnames, filenames in os.walk(deploy_dir_image):
for fn in filenames:
if fn.startswith(image_name):
- image_info_data[dirpath + fn] = os.stat(os.path.join(dirpath, fn)).st_size
+ image_output = os.path.join(dirpath, fn)
+ image_info_data[image_output] = os.stat(image_output).st_size
bb.event.fire(bb.event.MetadataEvent("ImageFileSize",image_info_data), d)
}