summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAndrei Dinu <andrei.adrianx.dinu@intel.com>2012-10-12 12:06:23 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-24 21:13:07 +0100
commit759dadf80ae6061860a2cd1b67e431658353c15c (patch)
treeed8a4eb11f8a66928580c5b50e7e09d111061c5f /bitbake
parent6cc2f06d43fed2b3cdec84cb21bbc45742b2608a (diff)
downloadpoky-759dadf80ae6061860a2cd1b67e431658353c15c.tar.gz
bitbake: hob: image size displayed wrong size in edit packages screen
size_str = '%.1f' % (size*1.0/(1024*1024)) + ' MB' from /bitbake/lib/bb/ui/crumbs/hobpages.py file transformed the size in MB. In our file it was again multiplied by 1024 instead of doing a division by 1024, which brought a faulty size on the edit packages screen. (Bitbake rev: 7dcea3884a45973ae332695dc8a53814b701151f) Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 6792fe097f..8eb388e57c 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -208,8 +208,8 @@ class PackageSelectionPage (HobPage):
208 selected_packages_size_str = HobPage._size_to_string(selected_packages_size) 208 selected_packages_size_str = HobPage._size_to_string(selected_packages_size)
209 209
210 image_overhead_factor = self.builder.configuration.image_overhead_factor 210 image_overhead_factor = self.builder.configuration.image_overhead_factor
211 image_rootfs_size = self.builder.configuration.image_rootfs_size * 1024 # image_rootfs_size is KB 211 image_rootfs_size = self.builder.configuration.image_rootfs_size / 1024 # image_rootfs_size is KB
212 image_extra_size = self.builder.configuration.image_extra_size * 1024 # image_extra_size is KB 212 image_extra_size = self.builder.configuration.image_extra_size / 1024 # image_extra_size is KB
213 base_size = image_overhead_factor * selected_packages_size 213 base_size = image_overhead_factor * selected_packages_size
214 image_total_size = max(base_size, image_rootfs_size) + image_extra_size 214 image_total_size = max(base_size, image_rootfs_size) + image_extra_size
215 if "zypper" in self.builder.configuration.selected_packages: 215 if "zypper" in self.builder.configuration.selected_packages: