Implement fakedbapi.cpv_all() so that bindbapi will inherit it.
authorZac Medico <zmedico@gentoo.org>
Sun, 9 Jul 2006 22:27:42 +0000 (22:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 9 Jul 2006 22:27:42 +0000 (22:27 -0000)
svn path=/main/trunk/; revision=3826

pym/portage.py

index 01a59726f2a32d1eec530353f55ed855b7ed1e6b..f09bdc864b19dceacc172a2b105a5c82072bc665 100644 (file)
@@ -4200,6 +4200,9 @@ class fakedbapi(dbapi):
                        returnme.extend(self.cpdict[x])
                return returnme
 
+       def cpv_all(self):
+               return self.cpvdict.keys()
+
        def cpv_inject(self,mycpv):
                """Adds a cpv from the list of available packages."""
                mycp=cpv_getkey(mycpv)