summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-03-01 00:02:20 +0000
committerMike Fulbright <msf@redhat.com>2001-03-01 00:02:20 +0000
commitd1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143 (patch)
treeca8b168d306576711902eaee1212f779b02907b6 /text.py
parentf040348adc40e3627aaa271b1bd93bb6effed1ec (diff)
downloadanaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.tar.gz
anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.tar.xz
anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.zip
fix for bug 26792
Diffstat (limited to 'text.py')
-rw-r--r--text.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/text.py b/text.py
index 8c9b413b9..82c0411f5 100644
--- a/text.py
+++ b/text.py
@@ -336,6 +336,23 @@ class InstallPathWindow:
class UpgradeExamineWindow:
def __call__ (self, dir, screen, todo):
if dir == -1:
+ # msf dont go back!
+ rc = ButtonChoiceWindow(screen, _("Proceed with upgrade?"),
+ _("The filesystems of the Linux installation "
+ "you have chosen to upgrade have already been "
+ "mounted. You cannot go back past this point. "
+ "\n\n") +
+ _("If you would like to exit the upgrade select "
+ "Exit, or choose Ok to continue with the "
+ "upgrade."),
+ [ _("Ok"), _("Exit") ], width = 50)
+
+ if rc == 'ok':
+ return INSTALL_OK
+ else:
+ import sys
+ sys.exit(0)
+
# Hack to let backing out of upgrades work properly
from fstab import NewtFstab
if todo.fstab:
@@ -384,6 +401,12 @@ class UpgradeExamineWindow:
root = parts[choice]
else:
root = parts[0]
+ (drive, fs) = root
+ rc = ButtonChoiceWindow (screen, _("Upgrade Partition"),
+ _("Going to upgrade partition /dev/") + drive,
+ buttons = [ _("Ok"), _("Back") ])
+ if rc == string.lower (_("Back")):
+ return INSTALL_BACK
todo.upgradeFindPackages (root)