diff options
author | Matt Wilson <msw@redhat.com> | 2001-01-22 19:23:03 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-01-22 19:23:03 +0000 |
commit | 2b34ab2763bb3675d88fa24502dccdee503b43ce (patch) | |
tree | 44b3f278154d2eaac179a42fb2946796278e4357 /comps.py | |
parent | e1451292867e36cf92be4c4e86bc4cbb412872ea (diff) | |
download | anaconda-2b34ab2763bb3675d88fa24502dccdee503b43ce.tar.gz anaconda-2b34ab2763bb3675d88fa24502dccdee503b43ce.tar.xz anaconda-2b34ab2763bb3675d88fa24502dccdee503b43ce.zip |
process exprs down in chains
Diffstat (limited to 'comps.py')
-rw-r--r-- | comps.py | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -68,6 +68,9 @@ class Package: for comp in chain: if not comp.isSelected(justManual = 0): on = 0 + else: + if not comp.set.exprMatch (comp.pkgDict[self]): + on = 0 if on: self.selected = 1 @@ -192,11 +195,7 @@ class Component: self.manuallySelected = 1 for pkg in self.pkgs: - # if the qualifier for this package is true, turn it on. - # XXX twiddling internals - pkg.selected = 0 - if self.set.exprMatch (self.pkgDict[pkg]): - pkg.updateSelectionCache() + pkg.updateSelectionCache() for comp in self.includes: comp.select(forInclude = 1) @@ -474,11 +473,7 @@ class ComponentSet: for comp in self.comps: if comp.isSelected (): for pkg in comp.pkgs: - # XXX twiddling internals - pkg.selected = 0 - # if the qualifier for this package is true, turn it on. - if self.exprMatch (comp.pkgDict[pkg]): - pkg.updateSelectionCache() + pkg.updateSelectionCache() def __repr__(self): s = "" |