From: Zac Medico Date: Fri, 10 Jun 2011 17:19:36 +0000 (-0700) Subject: fakedbapi: add myrepo args for portdbapi compat X-Git-Tag: v2.2.0_alpha40~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1aa05134750fc3639031c852824dac1c182a05dc;p=portage.git fakedbapi: add myrepo args for portdbapi compat --- diff --git a/pym/portage/dbapi/virtual.py b/pym/portage/dbapi/virtual.py index c16e82231..ec97ffed6 100644 --- a/pym/portage/dbapi/virtual.py +++ b/pym/portage/dbapi/virtual.py @@ -38,10 +38,10 @@ class fakedbapi(dbapi): self._match_cache[origdep] = result return result[:] - def cpv_exists(self, mycpv): + def cpv_exists(self, mycpv, myrepo=None): return mycpv in self.cpvdict - def cp_list(self, mycp, use_cache=1): + def cp_list(self, mycp, use_cache=1, myrepo=None): cachelist = self._match_cache.get(mycp) # cp_list() doesn't expand old-style virtuals if cachelist and cachelist[0].startswith(mycp): @@ -102,7 +102,7 @@ class fakedbapi(dbapi): if not len(self.cpdict[mycp]): del self.cpdict[mycp] - def aux_get(self, mycpv, wants): + def aux_get(self, mycpv, wants, myrepo=None): if not self.cpv_exists(mycpv): raise KeyError(mycpv) metadata = self.cpvdict[mycpv]