diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-06-05 01:59:49 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-06-05 01:59:49 -0700 |
commit | 92e5a5402074d4cb20c5cc9bd323acaf7a8e211e (patch) | |
tree | b0d7d8a1e4bc75205fad65810ed9ce016a191622 | |
parent | eab68e779802691733838f04f99ef71bdaa09e1f (diff) | |
download | portage-92e5a5402074d4cb20c5cc9bd323acaf7a8e211e.tar.gz portage-92e5a5402074d4cb20c5cc9bd323acaf7a8e211e.tar.bz2 portage-92e5a5402074d4cb20c5cc9bd323acaf7a8e211e.zip |
portdbapi.xmatch: remove redundant myval check
-rw-r--r-- | pym/portage/dbapi/porttree.py | 12 |
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()) |