summaryrefslogtreecommitdiffstats
path: root/dispatch.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-03 15:39:48 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-03 15:39:48 +0000
commitc9f5f9c3fb1fc0dd81840f8d8f724f056adc8306 (patch)
tree6f01059e8bfb36237aadaf56035bc4033bdc016d /dispatch.py
parentead13b3e2196c2e6efdb642f3c1887f19405d6fc (diff)
downloadanaconda-c9f5f9c3fb1fc0dd81840f8d8f724f056adc8306.tar.gz
anaconda-c9f5f9c3fb1fc0dd81840f8d8f724f056adc8306.tar.xz
anaconda-c9f5f9c3fb1fc0dd81840f8d8f724f056adc8306.zip
we can get beyond the length of installsteps with skipping steps
Diffstat (limited to 'dispatch.py')
-rw-r--r--dispatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dispatch.py b/dispatch.py
index 295fc72ed..8bf8289e0 100644
--- a/dispatch.py
+++ b/dispatch.py
@@ -171,7 +171,7 @@ class Dispatcher:
else:
self.step = self.step + self.dir
- if self.step == len(installSteps):
+ if self.step >= len(installSteps):
return None
while ((self.step >= self.firstStep
@@ -218,7 +218,7 @@ class Dispatcher:
def currentStep(self):
if self.step == None:
self.gotoNext()
- elif self.step == len(installSteps):
+ elif self.step >= len(installSteps):
return (None, None)
stepInfo = installSteps[self.step]