summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-02-15 15:43:28 +0100
committerAles Kozumplik <akozumpl@redhat.com>2011-02-21 10:00:55 +0100
commite3aa013ea43c93c00a0b8c3efced070c2fe6ca8b (patch)
treec9ba1501935ae57bd9938a032d426685724a2a9e
parent938bd19b5320ef16988a9b96d29e4270f69f7975 (diff)
Remove Dispatcher.firstStep.
It is a kindof confusing variable.
-rw-r--r--pyanaconda/dispatch.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pyanaconda/dispatch.py b/pyanaconda/dispatch.py
index 247413b91..f111f8455 100644
--- a/pyanaconda/dispatch.py
+++ b/pyanaconda/dispatch.py
@@ -134,7 +134,7 @@ class Dispatcher(object):
# begin with the step before this one. If all steps are skipped,
# we can not go backwards from this screen
i = self.step - 1
- while i >= self.firstStep:
+ while i >= 0:
if not self.stepIsDirect(i) and not self.skipSteps.has_key(installSteps[i][0]):
return True
i = i - 1
@@ -197,7 +197,7 @@ class Dispatcher(object):
total_steps = len(installSteps)
if self.step == None:
log.info("dispatch: resetting to the first step.")
- self.step = self.firstStep
+ self.step = 0
else:
log.info("dispatch: leaving (%d) step %s" %
(self.dir, installSteps[self.step][0]))
@@ -250,8 +250,6 @@ class Dispatcher(object):
self.step = None
self.skipSteps = {}
- self.firstStep = 0
-
def _getDir(self):
return self.anaconda.dir