summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-12 04:40:03 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-12 04:40:03 +0000
commit3936193ec8fa48c6d576fbf04685fe3b46babd1f (patch)
treef778e8409a649529643300986b2f69a41c56796b /comps.py
parent4d9a77b78d2b6d031e9983d1b41687c950a6340e (diff)
downloadanaconda-3936193ec8fa48c6d576fbf04685fe3b46babd1f.tar.gz
anaconda-3936193ec8fa48c6d576fbf04685fe3b46babd1f.tar.xz
anaconda-3936193ec8fa48c6d576fbf04685fe3b46babd1f.zip
ow.
keep a copy of whether metapkgs and optional components are selected by default. then use this information when writing out the anaconda-ks.cfg so that we can write out something which is correct (#73195, #80838). note that for metapkgs, we have to write out -pkg for each package in the group because we have no syntax for unselecting groups and staying that way seems saner
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/comps.py b/comps.py
index d5273a32a..ff8b3294e 100644
--- a/comps.py
+++ b/comps.py
@@ -343,6 +343,7 @@ class Component:
def addMetaPkg(self, comp, isDefault = 0):
self.metapkgs[comp] = (PKGTYPE_OPTIONAL, isDefault)
+ self.metadef[comp] = isDefault
def addPackage(self, p, pkgtype, handleDeps = 1):
if pkgtype == PKGTYPE_MANDATORY:
@@ -355,10 +356,12 @@ class Component:
p.registerComponent(self)
self.newpkgDict[p] = (PKGTYPE_OPTIONAL, 1)
self.pkgDict[p] = None
+ self.optDict[p] = 1
if handleDeps == 1:
self.updateDependencyCountForAddition(p)
elif pkgtype == PKGTYPE_OPTIONAL:
self.newpkgDict[p] = (PKGTYPE_OPTIONAL, 0)
+ self.optDict[p] = 2
else:
log("Unable to add package %s to component %s because it has an unknown pkgtype of %d" %(p.name, self.name, pkgtype))
@@ -543,8 +546,10 @@ class Component:
self.pkgDict = {}
self.newpkgDict = {}
+ self.optDict = {}
self.includes = []
self.metapkgs = {}
+ self.metadef = {}
self.manuallySelected = 0
self.selectionCount = 0
self.depsDict = {}