summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-31 01:51:52 +0000
committerErik Troan <ewt@redhat.com>1999-08-31 01:51:52 +0000
commitc4129575b86d7ae737d062afa6b093ab1847c1ed (patch)
treeac933f836c823fc556e00df72281ca5db1c2aa74 /text.py
parent43b1c4ff4d07992d6f060b98b72dc82c687b78a7 (diff)
downloadanaconda-c4129575b86d7ae737d062afa6b093ab1847c1ed.tar.gz
anaconda-c4129575b86d7ae737d062afa6b093ab1847c1ed.tar.xz
anaconda-c4129575b86d7ae737d062afa6b093ab1847c1ed.zip
set install types properly for kickstart
Diffstat (limited to 'text.py')
-rw-r--r--text.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/text.py b/text.py
index 5fc741b24..7fae80c1c 100644
--- a/text.py
+++ b/text.py
@@ -137,6 +137,15 @@ class KeyboardWindow:
class InstallPathWindow:
def __call__ (self, screen, todo, intf):
+ if (todo.instClass.installType == "install"):
+ intf.steps = intf.commonSteps + intf.installSteps
+ todo.upgrade = 0
+ return INSTALL_NOOP
+ elif (todo.instClass.installType == "upgrade"):
+ intf.steps = intf.commonSteps + intf.upgradeSteps
+ todo.upgrade = 1
+ return INSTALL_NOOP
+
choices = [ _("Install GNOME Workstation"),
_("Install KDE Workstation"),
_("Install Server System"),
@@ -1373,8 +1382,8 @@ class InstallInterface:
self.welcomeText = _("Red Hat Linux (C) 1999 Red Hat, Inc.")
self.screen.drawRootText (0, 0, self.welcomeText)
self.screen.pushHelpLine (_(" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen"))
- self.screen.suspendCallback(killSelf, self.screen)
-# self.screen.suspendCallback(debugSelf, self.screen)
+# self.screen.suspendCallback(killSelf, self.screen)
+ self.screen.suspendCallback(debugSelf, self.screen)
self.individual = Flag(0)
self.step = 0
self.dir = 1
@@ -1390,7 +1399,7 @@ class InstallInterface:
(self.screen, todo), "keyboard" ],
[_("Welcome"), WelcomeWindow, (self.screen,), "welcome" ],
[_("Installation Type"), InstallPathWindow,
- (self.screen, todo, self), "installtype" ],
+ (self.screen, todo, self) ],
]
self.installSteps = [