summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-01 18:45:04 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-01 18:45:04 +0000
commit4637db713ecfa5475495cb466ceb462e417e523a (patch)
tree8b278f29ed4f584c0de7f1e0d7a1e8063158664f /pym
parent1c5a91926314189b91aab33968628bedb6180791 (diff)
downloadportage-4637db713ecfa5475495cb466ceb462e417e523a.tar.gz
portage-4637db713ecfa5475495cb466ceb462e417e523a.tar.bz2
portage-4637db713ecfa5475495cb466ceb462e417e523a.zip
Remove some boolean logic that is obsolete now that the "selective" parameter
is passed into dep_zapdeps(). (trunk r9669) svn path=/main/branches/2.1.2/; revision=9671
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 4158c99a2..f764dbfc2 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -5359,10 +5359,7 @@ def dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None):
avail_slot = "%s:%s" % (dep_getkey(atom),
mydbapi.aux_get(avail_pkg, ["SLOT"])[0])
elif not avail_pkg:
- has_mask = False
- if hasattr(mydbapi, "xmatch"):
- has_mask = bool(mydbapi.xmatch("match-all", atom))
- if (selective or use_binaries or not has_mask):
+ if selective:
avail_pkg = vardb.match(atom)
if avail_pkg:
avail_pkg = avail_pkg[-1] # highest (ascending order)