diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-09-16 21:16:28 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-09-16 21:16:28 +0000 |
commit | 10f211fb9f37aff25d1dc592c9796cd9fe8e179e (patch) | |
tree | 0d879e3404cc0e1ba0e704d1260739ceb052dadc /kickstart.py | |
parent | b6013ec3704e05f111d7b3ac8f1851515898f6c5 (diff) | |
download | anaconda-10f211fb9f37aff25d1dc592c9796cd9fe8e179e.tar.gz anaconda-10f211fb9f37aff25d1dc592c9796cd9fe8e179e.tar.xz anaconda-10f211fb9f37aff25d1dc592c9796cd9fe8e179e.zip |
2005-09-16 Jeremy Katz <katzj@redhat.com>
* yuminstall.py (AnacondaYum.__init__): Little bit of clean-up,
remove some unused code.
(YumBackend.__init__): Create config file sooner.
(YumBackend.doPreSelection): Get base install class package
selection working in the short-term.
(YumBackend): Implement groupExists, selectGroup, selectPackage
and deselectPackage.
* kickstart.py (AnacondaKSParser.handleCommand): Fix traceback.
(Kickstart.setPackageSelection): Implement basic package selection.
(Kickstart.setGroupSelection): ... and group selection.
* installclass.py (BaseInstallClass.setPackageSelection): Use backend.
(BaseInstallClass.setGroupSelection): Likewise.
* dispatch.py (installSteps): Some comments to move stuff around,
re-instate post action step.
* backend.py (AnacondaBackend): Take instpath argument. Stub in
functions for basic package/group selection.
* anaconda: Pass rootPath into backend.
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py index f947172ee..d43a80dce 100644 --- a/kickstart.py +++ b/kickstart.py @@ -609,7 +609,7 @@ class AnacondaKSParser(KickstartParser): raise KickstartParseError, (cmd + " " + string.join (args)) else: if self.handler.handlers[cmd] != None: - self.handler.setattr("currentCmd", cmd) + self.handler.currentCmd = cmd self.handler.handlers[cmd](self.id, args) # The anaconda kickstart processor. @@ -735,6 +735,19 @@ class Kickstart(BaseInstallClass): for n in self.handlers.showSteps: dispatch.skipStep(n, skip = 0) + def setPackageSelection(self, backend, *args): + # FIXME: handling of missing packages... + map(backend.selectPackage, self.ksdata.packageList) + + def setGroupSelection(self, backend, *args): + if 1: # FIXME should be based on addBase, but that's not in ksdata + backend.selectGroup("Base") + # FIXME: handling of missing groups + map(backend.selectGroup, self.ksdata.groupList) + + # FIXME: need to handle package exclusions here. + map(backend.deselectPackage, self.ksdata.excludedList) + # # look through ksfile and if it contains a line: # |