summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-05 01:59:49 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-05 01:59:49 -0700
commit92e5a5402074d4cb20c5cc9bd323acaf7a8e211e (patch)
treeb0d7d8a1e4bc75205fad65810ed9ce016a191622 /pym
parenteab68e779802691733838f04f99ef71bdaa09e1f (diff)
downloadportage-92e5a5402074d4cb20c5cc9bd323acaf7a8e211e.tar.gz
portage-92e5a5402074d4cb20c5cc9bd323acaf7a8e211e.tar.bz2
portage-92e5a5402074d4cb20c5cc9bd323acaf7a8e211e.zip
portdbapi.xmatch: remove redundant myval check
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 4c02cbe30..394a57c81 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -813,13 +813,11 @@ class portdbapi(dbapi):
# match *all* packages, only against the cpv, in order
# to bypass unnecessary cache access for things like IUSE
# and SLOT.
-
- if myval is None:
- if mydep == mykey:
- myval = self.cp_list(mykey, mytree=mytree)
- else:
- myval = match_from_list(mydep,
- self.cp_list(mykey, mytree=mytree))
+ if mydep == mykey:
+ myval = self.cp_list(mykey, mytree=mytree)
+ else:
+ myval = match_from_list(mydep,
+ self.cp_list(mykey, mytree=mytree))
elif level == "list-visible":
#a list of all visible packages, not called directly (just by xmatch())