diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-01 00:02:20 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-01 00:02:20 +0000 |
commit | d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143 (patch) | |
tree | ca8b168d306576711902eaee1212f779b02907b6 /text.py | |
parent | f040348adc40e3627aaa271b1bd93bb6effed1ec (diff) | |
download | anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.tar.gz anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.tar.xz anaconda-d1673324ea27bf6eb1ab2795d8d7a3dc8b5c9143.zip |
fix for bug 26792
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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) |