summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-31 17:05:29 -0400
committerChris Lumens <clumens@redhat.com>2009-04-01 10:34:41 -0400
commitbc1b0540e525b3c291c60b0865d43ed6bbd6a0eb (patch)
treeeadc47665b889028b32c6f7d37ed56bcce7d7e29 /yuminstall.py
parentb6427940cfd2de348e70f86d729e1812a46d45e5 (diff)
downloadanaconda-bc1b0540e525b3c291c60b0865d43ed6bbd6a0eb.tar.gz
anaconda-bc1b0540e525b3c291c60b0865d43ed6bbd6a0eb.tar.xz
anaconda-bc1b0540e525b3c291c60b0865d43ed6bbd6a0eb.zip
Fix the check for if there's enough space available on / and /usr (#492614).
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/yuminstall.py b/yuminstall.py
index b91172ac8..42a74b548 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1324,14 +1324,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
(self.dlpkgs, self.totalSize, self.totalFiles) = self.ayum.getDownloadPkgs()
if not anaconda.id.getUpgrade():
- usrPart = None
- for fs in anaconda.id.storage.devicetree.filesystems:
- if fs.mountpoint == "/usr":
- usrPart = fs
- if usrPart is not None:
- largePart = usrPart
- else:
- largePart = anaconda.id.storage.fsset.rootDevice
+ largePart = anaconda.id.storage.fsset.mountpoints.get("/usr", anaconda.id.storage.fsset.rootDevice)
if largePart and largePart.size < self.totalSize / 1024:
rc = anaconda.intf.messageWindow(_("Error"),