From e3aa013ea43c93c00a0b8c3efced070c2fe6ca8b Mon Sep 17 00:00:00 2001 From: Ales Kozumplik Date: Tue, 15 Feb 2011 15:43:28 +0100 Subject: Remove Dispatcher.firstStep. It is a kindof confusing variable. --- pyanaconda/dispatch.py | 6 ++---- 1 file 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 -- cgit