From 1aa05134750fc3639031c852824dac1c182a05dc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 10 Jun 2011 10:19:36 -0700 Subject: fakedbapi: add myrepo args for portdbapi compat --- pym/portage/dbapi/virtual.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pym') 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] -- cgit v1.2.3-1-g7c22