diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-01-18 15:25:49 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-01-18 15:25:49 +0000 |
commit | 87c25642b55cc7be581c06931a7fc739628a36f8 (patch) | |
tree | a27b74c4802506a57790d78a76f1953cd0b2ae18 /installclasses | |
parent | abb6ec58462064d9874945efb8215e1b6cd76d71 (diff) | |
download | anaconda-87c25642b55cc7be581c06931a7fc739628a36f8.tar.gz anaconda-87c25642b55cc7be581c06931a7fc739628a36f8.tar.xz anaconda-87c25642b55cc7be581c06931a7fc739628a36f8.zip |
2007-01-18 Jeremy Katz <katzj@redhat.com>
* installclasses/fedora.py: Implement getMethod/getBackend
* installclasses/rhel.py: Likewise.
* anaconda (Anaconda.setMethod): Use installclass to determine method
(Anaconda.setBackend): And backend
* installclass.py (BaseInstallClass.getMethod): Add a method to
parse the method str and return an InstallMethod constructor
(BaseInstallClass.getBackend): For backend as well
Diffstat (limited to 'installclasses')
-rw-r--r-- | installclasses/fedora.py | 9 | ||||
-rw-r--r-- | installclasses/rhel.py | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/installclasses/fedora.py b/installclasses/fedora.py index 1ed820ff0..d069dc338 100644 --- a/installclasses/fedora.py +++ b/installclasses/fedora.py @@ -4,6 +4,9 @@ from constants import * import os import iutil +import installmethod +import yuminstall + import rpmUtils.arch class InstallClass(BaseInstallClass): @@ -41,5 +44,11 @@ class InstallClass(BaseInstallClass): BaseInstallClass.setSteps(self, dispatch); dispatch.skipStep("partition") + def getMethod(self, methodstr): + return BaseInstallClass.getMethod(self, methodstr) + + def getBackend(self, methodstr): + return yuminstall.YumBackend + def __init__(self, expert): BaseInstallClass.__init__(self, expert) diff --git a/installclasses/rhel.py b/installclasses/rhel.py index 411382299..4f89031c6 100644 --- a/installclasses/rhel.py +++ b/installclasses/rhel.py @@ -91,6 +91,12 @@ class InstallClass(BaseInstallClass): self.regkey = key + def getMethod(self, methodstr): + return BaseInstallClass.getMethod(self, methodstr) + + def getBackend(self, methodstr): + return yuminstall.YumBackend + def __init__(self, expert): BaseInstallClass.__init__(self, expert) |