Fix portdbapi.xmatch("minimum-visible") breakage where a repo
authorZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 18:33:38 +0000 (11:33 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 18:33:38 +0000 (11:33 -0700)
name is passed to cp_list instead of a repo path.

pym/portage/dbapi/porttree.py

index fb927597312becf8801ac064c68dce8ba991ab88..49a1b004912bc1ac4c201fd2c6a6d9422d39fee8 100644 (file)
@@ -892,7 +892,8 @@ class portdbapi(dbapi):
                        if mydep == mykey:
                                mylist = self.cp_list(mykey)
                        else:
-                               mylist = match_from_list(mydep, self.cp_list(mykey, myrepo = mydep.repo))
+                               mylist = match_from_list(mydep, self.cp_list(mykey,
+                                       mytree=self._repository_map.get(mydep.repo)))
                        myval = ""
                        settings = self.settings
                        local_config = settings.local_config