[PATCH 5/8] Use a better starting value for required space than 0.

Chris Lumens clumens at redhat.com
Tue Oct 2 19:02:41 UTC 2012


---
 pyanaconda/packaging/yumpayload.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index a6402ff..beb4226 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -136,7 +136,10 @@ class YumPayload(PackagePayload):
 
         self.install_device = None
 
-        self._space_required = Size(bytes=0)
+        # 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._groups = None
         self._packages = []
-- 
1.7.11.2



More information about the anaconda-patches mailing list