All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dongxiao Xu <dongxiao.xu@intel.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH 6/6] Hob: Add an extra 50M space if zypper is selected
Date: Mon,  9 Apr 2012 16:42:02 +0800	[thread overview]
Message-ID: <de15a0370324838a6009154215dca55b4e6126db.1333960654.git.dongxiao.xu@intel.com> (raw)
In-Reply-To: <cover.1333960654.git.dongxiao.xu@intel.com>
In-Reply-To: <cover.1333960654.git.dongxiao.xu@intel.com>

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(-)

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" %
-- 
1.7.4.1




  parent reply	other threads:[~2012-04-09  8:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09  8:41 [PATCH 0/6][PULL] Hob: Bug fixes Dongxiao Xu
2012-04-09  8:41 ` [PATCH 1/6] Hob: Change base image to "Create your own image" if customized Dongxiao Xu
2012-04-09  8:41 ` [PATCH 2/6] data_smart: Improve the calculation of config hash Dongxiao Xu
2012-04-10 23:00   ` Richard Purdie
2012-04-16  7:15     ` Xu, Dongxiao
2012-04-16  8:28       ` Richard Purdie
2012-04-16  8:41         ` Xu, Dongxiao
2012-04-16  9:00           ` Richard Purdie
2012-04-09  8:41 ` [PATCH 3/6] Hob: Fix the pattern patch for image name Dongxiao Xu
2012-04-09  8:42 ` [PATCH 4/6] Hob: Fix tooltips in image configuration page Dongxiao Xu
2012-04-09  8:42 ` [PATCH 5/6] Hob: Fix tooltips in Settings dialog Dongxiao Xu
2012-04-09  8:42 ` Dongxiao Xu [this message]
2012-04-10 22:46 ` [PATCH 0/6][PULL] Hob: Bug fixes Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de15a0370324838a6009154215dca55b4e6126db.1333960654.git.dongxiao.xu@intel.com \
    --to=dongxiao.xu@intel.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.