From 695cd3b262a4c39b5c8307dd07576cc402ae2b38 Mon Sep 17 00:00:00 2001 From: jakub Date: Mon, 25 Oct 1999 14:05:21 +0000 Subject: Make Lilo*/Silo* window replacement nicer, the previous one e.g. would not catch recent changes in UpdateSteps. --- iw/installpath.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'iw/installpath.py') 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") -- cgit