diff options
author | David Lehman <dlehman@redhat.com> | 2012-12-05 11:04:05 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-12-11 14:57:38 -0600 |
commit | 7b034687687098a9f96526405bcc6070c02b8997 (patch) | |
tree | bae292ed2ab7edc29b82d53e9da84d976571603a /pyanaconda/packaging | |
parent | e318c68dc4a87b75489262b889876ee5acae679e (diff) | |
download | anaconda-7b034687687098a9f96526405bcc6070c02b8997.tar.gz anaconda-7b034687687098a9f96526405bcc6070c02b8997.tar.xz anaconda-7b034687687098a9f96526405bcc6070c02b8997.zip |
Update default install size and disk space estimate.
Diffstat (limited to 'pyanaconda/packaging')
-rw-r--r-- | pyanaconda/packaging/yumpayload.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py index d5bd61a34..e65ed5d3f 100644 --- a/pyanaconda/packaging/yumpayload.py +++ b/pyanaconda/packaging/yumpayload.py @@ -156,7 +156,7 @@ class YumPayload(PackagePayload): # This value comes from a default install of the x86_64 Fedora 18. It # is meant as a best first guess only. Once package metadata is # available we can use that as a better value. - self._space_required = Size(spec="2800 MB") + self._space_required = Size(spec="3000 MB") self._groups = None self._packages = [] @@ -1123,7 +1123,8 @@ reposdir=%s for txmbr in self._yum.tsInfo.getMembers(): total += getattr(txmbr.po, "installedsize", 0) - total += total * 0.10 # add 10% to account for metadata, &c + total += total * 0.35 # add 35% to account for the fact that the above + # method is laughably inaccurate self._space_required = Size(bytes=total) return self._space_required |