diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-22 23:57:49 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-22 23:57:49 +0000 |
commit | 2ca49b701691b252c005a896fff0691aba77dfc6 (patch) | |
tree | 7f437f84615e8df2edac4eb238a9ea3c43032f9c | |
parent | 388c3fb2bc456d0fb4e5339e58c3accfc6d00956 (diff) | |
download | anaconda-2ca49b701691b252c005a896fff0691aba77dfc6.tar.gz anaconda-2ca49b701691b252c005a896fff0691aba77dfc6.tar.xz anaconda-2ca49b701691b252c005a896fff0691aba77dfc6.zip |
handle going back in TUI upgrade correctly, fixes traceback
-rw-r--r-- | textw/upgrade_text.py | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/textw/upgrade_text.py b/textw/upgrade_text.py index 2187b3d36..930e290e0 100644 --- a/textw/upgrade_text.py +++ b/textw/upgrade_text.py @@ -10,7 +10,23 @@ import upgrade class UpgradeSwapWindow: def __call__ (self, dir, screen, todo): if dir == -1: - raise ValueError, "this can't happen" + # 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) + rc = upgrade.swapSuggestion(todo.instPath, todo.fstab) if not rc: @@ -129,21 +145,6 @@ class UpgradeExamineWindow: else: import sys sys.exit(0) - - # Hack to let backing out of upgrades work properly - from fstab import NewtFstab - if todo.fstab: - todo.fstab.turnOffSwap() - todo.fstab = NewtFstab(todo.setupFilesystems, - todo.serial, 0, 0, - todo.intf.waitWindow, - todo.intf.messageWindow, - todo.intf.progressWindow, - not todo.expert, - todo.method.protectedPartitions(), - todo.expert, 1) - - return INSTALL_NOOP parts = todo.upgradeFindRoot () |