summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-22 19:23:03 +0000
committerMatt Wilson <msw@redhat.com>2001-01-22 19:23:03 +0000
commit2b34ab2763bb3675d88fa24502dccdee503b43ce (patch)
tree44b3f278154d2eaac179a42fb2946796278e4357 /comps.py
parente1451292867e36cf92be4c4e86bc4cbb412872ea (diff)
downloadanaconda-2b34ab2763bb3675d88fa24502dccdee503b43ce.tar.gz
anaconda-2b34ab2763bb3675d88fa24502dccdee503b43ce.tar.xz
anaconda-2b34ab2763bb3675d88fa24502dccdee503b43ce.zip
process exprs down in chains
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/comps.py b/comps.py
index 493827d20..53cefe729 100644
--- a/comps.py
+++ b/comps.py
@@ -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 = ""