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

Cristiana Voicu cristiana.voicu at intel.com
Tue Nov 12 14:50:24 UTC 2013


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

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>
-- 
1.7.9.5




More information about the bitbake-devel mailing list