From 92e5a5402074d4cb20c5cc9bd323acaf7a8e211e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 5 Jun 2011 01:59:49 -0700 Subject: portdbapi.xmatch: remove redundant myval check --- pym/portage/dbapi/porttree.py | 12 +++++------- 1 file 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()) -- cgit v1.2.3-1-g7c22