diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-25 20:47:42 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-25 20:47:42 +0000 |
commit | 7bff3f20428d39fbd9ec4b7448bff2b2f2c91e6a (patch) | |
tree | 9d893d097e3e82a15d3450acf61f1150f230557c /dispatch.py | |
parent | 67ad19b7ad9d586ef045961af2c6f374ba1b3c57 (diff) | |
download | anaconda-7bff3f20428d39fbd9ec4b7448bff2b2f2c91e6a.tar.gz anaconda-7bff3f20428d39fbd9ec4b7448bff2b2f2c91e6a.tar.xz anaconda-7bff3f20428d39fbd9ec4b7448bff2b2f2c91e6a.zip |
make it possible to skip a step permanently and use that for network installs
Diffstat (limited to 'dispatch.py')
-rw-r--r-- | dispatch.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dispatch.py b/dispatch.py index e79158d11..505c56a63 100644 --- a/dispatch.py +++ b/dispatch.py @@ -110,7 +110,11 @@ class Dispatcher: self.moveStep() def setStepList(self, *steps): - self.skipSteps = {} + # only remove non-permanently skipped steps from our skip list + for step, state in self.skipSteps.items(): + if state == 1: + del self.skipSteps[step] + stepExists = {} for step in installSteps: name = step[0] @@ -126,12 +130,15 @@ class Dispatcher: def stepInSkipList(self, step): return self.skipSteps.has_key(step) - def skipStep(self, stepToSkip, skip = 1): + def skipStep(self, stepToSkip, skip = 1, permanent = 0): for step in installSteps: name = step[0] if name == stepToSkip: if skip: - self.skipSteps[name] = 1 + if permanent: + self.skipSteps[name] = 2 + else: + self.skipSteps[name] = 1 elif self.skipSteps.has_key(name): del self.skipSteps[name] return |