Fix portdbapi.cpv_all() so that it actually returns a list of all available ebuilds.
authorZac Medico <zmedico@gentoo.org>
Sun, 19 Nov 2006 00:01:47 +0000 (00:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 19 Nov 2006 00:01:47 +0000 (00:01 -0000)
svn path=/main/trunk/; revision=5088

pym/portage.py

index 9aa3f94c5faae129a953cc5237310002c8bcde06..04442cb8a2938bcf9b2fd15f066dcff1a2e52b01 100644 (file)
@@ -5355,7 +5355,11 @@ class portdbapi(dbapi):
                l.sort()
                return l
 
-       cpv_all = cp_all
+       def cpv_all(self):
+               cpv_list = []
+               for cp in self.cp_all():
+                       cpv_list.extend(self.cp_list(cp))
+               return cpv_list
 
        def p_list(self,mycp):
                d={}