summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-06 16:19:21 +0000
committerChris Lumens <clumens@redhat.com>2006-03-06 16:19:21 +0000
commit2b01291b6bc1efd4889a0fb7c6ccef9742c606c9 (patch)
treea8c46cb9e1bbf129e10971d6c0c15356726974c6 /yuminstall.py
parent7fec57695356bbbed00cd37e24bf97d5576f79aa (diff)
downloadanaconda-2b01291b6bc1efd4889a0fb7c6ccef9742c606c9.tar.gz
anaconda-2b01291b6bc1efd4889a0fb7c6ccef9742c606c9.tar.xz
anaconda-2b01291b6bc1efd4889a0fb7c6ccef9742c606c9.zip
Disable size check on upgrade (#184112).
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py42
1 files changed, 22 insertions, 20 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 717152471..8968e4897 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -789,27 +789,29 @@ class YumBackend(AnacondaBackend):
(code, msgs) = self.ayum.buildTransaction()
(self.dlpkgs, self.totalSize, self.totalFiles) = self.ayum.getDownloadPkgs()
- usrPart = id.partitions.getRequestByMountPoint("/usr")
- if usrPart is not None:
- largePart = usrPart
- else:
- largePart = id.partitions.getRequestByMountPoint("/")
-
- if largePart.getActualSize(id.partitions, id.diskset) < self.totalSize / 1024:
- dscb.pop()
- rc = intf.messageWindow(_("Error"),
- _("Your selected packages require %d MB "
- "of free space for installation, but "
- "you do not have enough available. "
- "You can change your selections or "
- "reboot." % (self.totalSize / 1024)),
- type="custom", custom_icon="error",
- custom_buttons=[_("_Back"), _("Re_boot")])
-
- if rc == 1:
- sys.exit(1)
+ # FIXME: Disable check on upgrades for now, fix for FC6.
+ if not id.getUpgrade():
+ usrPart = id.partitions.getRequestByMountPoint("/usr")
+ if usrPart is not None:
+ largePart = usrPart
else:
- return DISPATCH_BACK
+ largePart = id.partitions.getRequestByMountPoint("/")
+
+ if largePart.getActualSize(id.partitions, id.diskset) < self.totalSize / 1024:
+ dscb.pop()
+ rc = intf.messageWindow(_("Error"),
+ _("Your selected packages require %d MB "
+ "of free space for installation, but "
+ "you do not have enough available. "
+ "You can change your selections or "
+ "reboot." % (self.totalSize / 1024)),
+ type="custom", custom_icon="error",
+ custom_buttons=[_("_Back"), _("Re_boot")])
+
+ if rc == 1:
+ sys.exit(1)
+ else:
+ return DISPATCH_BACK
finally:
dscb.pop()
self.ayum.dsCallback = None