diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-05 19:46:58 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-05 19:46:58 +0000 |
commit | 4a87c258d0eba6702f53555f9833cb0cb9f80abc (patch) | |
tree | a9ad411d729b8ecda347e4771c9215bca3ced06c /text.py | |
parent | 501aa8cd72b97e3819a6a5146815616bd964c390 (diff) | |
download | anaconda-4a87c258d0eba6702f53555f9833cb0cb9f80abc.tar.gz anaconda-4a87c258d0eba6702f53555f9833cb0cb9f80abc.tar.xz anaconda-4a87c258d0eba6702f53555f9833cb0cb9f80abc.zip |
make sure upgrade notification screen doesn't apeear in standalone mode
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -402,11 +402,16 @@ class UpgradeExamineWindow: 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 + + # terrible hack - need to fix in future + # if we're skipping confirm upgrade window, we must be in + # upgradeonly mode, so don't display this window either + if not todo.instClass.skipStep('confirm-upgrade'): + 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) |