summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-10 10:19:36 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-10 10:19:36 -0700
commit1aa05134750fc3639031c852824dac1c182a05dc (patch)
tree5bb42f0df319c67e939d22100f64e517e53993e7
parent70bf95f5bdb143f51ad962f8c7f7c841be3dab8e (diff)
downloadportage-1aa05134750fc3639031c852824dac1c182a05dc.tar.gz
portage-1aa05134750fc3639031c852824dac1c182a05dc.tar.bz2
portage-1aa05134750fc3639031c852824dac1c182a05dc.zip
fakedbapi: add myrepo args for portdbapi compat
-rw-r--r--pym/portage/dbapi/virtual.py6
1 files changed, 3 insertions, 3 deletions
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]