portdbapi.xmatch: remove redundant myval check
authorZac Medico <zmedico@gentoo.org>
Sun, 5 Jun 2011 08:59:49 +0000 (01:59 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 5 Jun 2011 08:59:49 +0000 (01:59 -0700)
pym/portage/dbapi/porttree.py

index 4c02cbe30493008e00cc8c83f9b53f0ec6e63412..394a57c81061a29de2517f153fa1d93c83049d12 100644 (file)
@@ -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())