Patchwork [bitbake-devel] toaster: convert build_package size to bytes to keep consistence

login
register
mail settings
Submitter Cristiana Voicu
Date Nov. 15, 2013, 11:47 a.m.
Message ID <BE68E9C8E0850C43B0F0B0B7D57FA5AE2E8B0B60@IRSMSX105.ger.corp.intel.com>
Download mbox | patch
Permalink /patch/61777/
State New
Headers show

Comments

Cristiana Voicu - Nov. 15, 2013, 11:47 a.m.
Hi Richard,

This was merged to master, and it should be merged to dora-toaster branch too.
Can you please merge it?
Thanks,
Cristiana


-----Original Message-----
From: Voicu, Cristiana 
Sent: Tuesday, November 12, 2013 4:50 PM
To: bitbake-devel@lists.openembedded.org
Cc: Voicu, Cristiana
Subject: [PATCH] toaster: convert build_package size to bytes to keep consistence

[YOCTO #5503]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py               |    2 +-
 .../lib/toaster/bldviewer/templates/bpackage.html  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
1.7.9.5
Richard Purdie - Nov. 15, 2013, 11:57 a.m.
On Fri, 2013-11-15 at 11:47 +0000, Voicu, Cristiana wrote:
> This was merged to master, and it should be merged to dora-toaster branch too.
> Can you please merge it?

Alex is going to put together a branch with the patches he wants merged
there. I'll wait for that and then merge it that way.

Cheers,

Richard

Patch

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index c3809ef..6dcf459 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -186,7 +186,7 @@  class ORMWrapper(object):
                                        revision = package_info['PKGR'],
                                        summary = package_info['SUMMARY'],
                                        description = package_info['DESCRIPTION'],
-                                       size = package_info['PKGSIZE'],
+                                       size = 
+ int(package_info['PKGSIZE']) * 1024,
                                        section = package_info['SECTION'],
                                        license = package_info['LICENSE'],
                                        ) diff --git a/bitbake/lib/toaster/bldviewer/templates/bpackage.html b/bitbake/lib/toaster/bldviewer/templates/bpackage.html
index 2e254db..4e6d9c6 100644
--- a/bitbake/lib/toaster/bldviewer/templates/bpackage.html
+++ b/bitbake/lib/toaster/bldviewer/templates/bpackage.html
@@ -13,7 +13,7 @@ 
             <th>Summary</th>
             <th>Section</th>
             <th>Description</th>
-            <th>Size on host disk (KBytes)</th>
+            <th>Size on host disk (Bytes)</th>
             <th>License</th>
             <th>Dependencies List (all)</th>
             </tr>