summaryrefslogtreecommitdiffstats
path: root/iw/installpath.py
diff options
context:
space:
mode:
authorjakub <jakub>1999-10-25 14:05:21 +0000
committerjakub <jakub>1999-10-25 14:05:21 +0000
commit695cd3b262a4c39b5c8307dd07576cc402ae2b38 (patch)
tree98dc1f1645285470b31a74bbbfb77f3e0fa5db87 /iw/installpath.py
parentabfcd3f0cea10d6d360dfe1240292ac00cc787d5 (diff)
downloadanaconda-695cd3b262a4c39b5c8307dd07576cc402ae2b38.tar.gz
anaconda-695cd3b262a4c39b5c8307dd07576cc402ae2b38.tar.xz
anaconda-695cd3b262a4c39b5c8307dd07576cc402ae2b38.zip
Make Lilo*/Silo* window replacement nicer, the previous one e.g. would not
catch recent changes in UpdateSteps.
Diffstat (limited to 'iw/installpath.py')
-rw-r--r--iw/installpath.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/iw/installpath.py b/iw/installpath.py
index 7e38d018e..0109c900a 100644
--- a/iw/installpath.py
+++ b/iw/installpath.py
@@ -42,11 +42,18 @@ class InstallPathWindow (InstallWindow):
(SERVER, _("Server"), "server.png"),
(CUSTOM, _("Custom"), "custom.png"))
- installSteps = [ ( AutoPartitionWindow, "partition" ),
+ def __init__ (self, ics):
+ if iutil.getArch() == 'sparc':
+ BootloaderWindow = SiloWindow
+ else:
+ BootloaderWindow = LiloWindow
+
+ self.installSteps = [
+ ( AutoPartitionWindow, "partition" ),
FDiskWindow,
( PartitionWindow, "partition" ),
( FormatWindow, "format" ),
- ( LiloWindow, "lilo" ),
+ ( BootloaderWindow, "lilo" ),
( NetworkWindow, "network" ),
( TimezoneWindow, "timezone" ),
( AccountWindow, "accounts" ),
@@ -60,23 +67,15 @@ class InstallPathWindow (InstallWindow):
( CongratulationWindow, "complete" )
]
- upgradeSteps = [ UpgradeExamineWindow,
- LiloWindow,
+ self.upgradeSteps = [
+ UpgradeExamineWindow,
+ BootloaderWindow,
UnresolvedDependenciesWindow,
InstallProgressWindow,
BootdiskWindow,
CongratulationWindow
]
- def __init__ (self, ics):
- if iutil.getArch() == 'sparc':
- for i in range(len(self.installSteps)):
- if type(self.installSteps[i]) == type((1,)):
- (x, string) = self.installSteps[i]
- if string == 'lilo':
- self.installSteps[i] = ( SiloWindow, "silo" )
- break
-
InstallWindow.__init__ (self, ics)
ics.readHTML ("instpath")