summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-03-05 19:46:58 +0000
committerMike Fulbright <msf@redhat.com>2001-03-05 19:46:58 +0000
commit4a87c258d0eba6702f53555f9833cb0cb9f80abc (patch)
treea9ad411d729b8ecda347e4771c9215bca3ced06c /text.py
parent501aa8cd72b97e3819a6a5146815616bd964c390 (diff)
downloadanaconda-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.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/text.py b/text.py
index f7cedd67e..01adb0c1d 100644
--- a/text.py
+++ b/text.py
@@ -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)