]> code.ossystems Code Review - openembedded-core.git/commitdiff
toaster.bbclass: image file is missing a "/"
authorCristiana Voicu <cristiana.voicu@intel.com>
Mon, 7 Apr 2014 08:50:24 +0000 (11:50 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Apr 2014 12:59:11 +0000 (13:59 +0100)
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>
meta/classes/toaster.bbclass

index f7518ad61f53cd50ec26d7329c87be7add730edd..cab5966e0f41435e37f28279bbb083ab48bbb04e 100644 (file)
@@ -153,7 +153,8 @@ python toaster_image_dumpdata() {
     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)
 }