Patchwork [review-request] toaster.bbclass: image file is missing a "/"

login
register
mail settings
Submitter Cristiana Voicu
Date April 7, 2014, 8:50 a.m.
Message ID <1396860624-22648-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/70201/
State New
Headers show

Comments

Cristiana Voicu - April 7, 2014, 8:50 a.m.
Relaced the key with the join between path and file name.

[YOCTO #6090]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 meta/classes/toaster.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Alex Damian - April 8, 2014, 12:30 p.m.
This is indeed the patch reviewed on the list.

Sorry about the mixup, can you please merge ?

Thanks,
Alex


On Mon, Apr 7, 2014 at 9:50 AM, Cristiana Voicu
<cristiana.voicu@intel.com>wrote:

> Relaced the key with the join between path and file name.
>
> [YOCTO #6090]
> Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
> ---
>  meta/classes/toaster.bbclass |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
> index 9fb2cec..d2fa82d 100644
> --- a/meta/classes/toaster.bbclass
> +++ b/meta/classes/toaster.bbclass
> @@ -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)
>  }
> --
> 1.7.9.5
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

Patch

diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 9fb2cec..d2fa82d 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -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)
 }