summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-09 16:42:02 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:43 +0100
commit9fd56fad6c1d3e085d48c7cf7899e90c77df4e90 (patch)
treee08b6cc4f30598f1c430545e0535c950670952f0
parent44b08a96b8011b3d3375f9a93c35cedad200fd3b (diff)
downloadpoky-9fd56fad6c1d3e085d48c7cf7899e90c77df4e90.tar.gz
poky-9fd56fad6c1d3e085d48c7cf7899e90c77df4e90.tar.bz2
poky-9fd56fad6c1d3e085d48c7cf7899e90c77df4e90.zip
Hob: Add an extra 50M space if zypper is selected
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. (Bitbake rev: 22344f13d5e201be0d6381c6542d05c6fde7eec3) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 3dc09100fa..fc3d4a3bbf 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -179,6 +179,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" %