Patchwork [bitbake-devel,6/6] Hob: Add an extra 50M space if zypper is selected

login
register
mail settings
Submitter Dongxiao Xu
Date April 9, 2012, 8:42 a.m.
Message ID <de15a0370324838a6009154215dca55b4e6126db.1333960654.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/25369/
State Accepted
Commit 22344f13d5e201be0d6381c6542d05c6fde7eec3
Headers show

Comments

Dongxiao Xu - April 9, 2012, 8:42 a.m.
If zypper is selected, RPM packaging will add extra 50M free space to
the final image. We need to reflect it in package selection page.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/packageselectionpage.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/lib/bb/ui/crumbs/packageselectionpage.py b/lib/bb/ui/crumbs/packageselectionpage.py
index dd0df25..91d3e57 100755
--- a/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/lib/bb/ui/crumbs/packageselectionpage.py
@@ -171,6 +171,8 @@  class PackageSelectionPage (HobPage):
         image_extra_size = self.builder.configuration.image_extra_size * 1024 # image_extra_size is KB
         base_size = image_overhead_factor * selected_packages_size
         image_total_size = max(base_size, image_rootfs_size) + image_extra_size
+        if "zypper" in self.builder.configuration.selected_packages:
+            image_total_size += (51200 * 1024)
         image_total_size_str = HobPage._size_to_string(image_total_size)
 
         self.label.set_text("Packages included: %s\nSelected packages size: %s\nTotal image size: %s" %