diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-08-12 04:47:52 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-08-12 04:47:52 +0000 |
commit | a70b987c3150ff501ac163fbb56604a1ca870408 (patch) | |
tree | 839cd6f242bfcaa5529cc31a3d8e2e76fa0f757e /packages.py | |
parent | e7947c81583663b55ef4b53d87dad5973d246b08 (diff) | |
download | anaconda-a70b987c3150ff501ac163fbb56604a1ca870408.tar.gz anaconda-a70b987c3150ff501ac163fbb56604a1ca870408.tar.xz anaconda-a70b987c3150ff501ac163fbb56604a1ca870408.zip |
bad hack to handle not installing kde-i18n unconditionally with language support bits
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/packages.py b/packages.py index 567ab553d..ca1990cf7 100644 --- a/packages.py +++ b/packages.py @@ -1080,4 +1080,19 @@ def selectLanguageSupportGroups(comps, langSupport): %(group.name,)) continue comps.compsDict[group.name].select() - + for package in group.pkgConditionals.keys(): + req = group.pkgConditionals[package] + if not comps.packages.has_key(package): + log("Missing %s which is in a langsupport conditional" %(package,)) + continue + if not comps.compsxml.packages.has_key(req): + log("Missing %s which is required by %s in a langsupport group" %(req, package)) + continue + # add to the deps in the dependencies structure -- + # this will take care of if we're ever added as a dep + comps.compsxml.packages[req].dependencies.append(package) + # also add to all components for which the req is + # registered as PKGTYPE_DEFAULT + pkg = comps.packages[package] + for comp in comps.packages[req].comps: + comp.addPackage(pkg, 1) |