aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-07 00:59:04 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-07 00:59:04 -0700
commit6d96059e910ceae249dd492a93eab424d4827955 (patch)
treeb84769ab9ed5eeccf0fa6d0c2a58bf39c28bbae8 /pym/portage/dbapi/bintree.py
parentMake portage.cache.anydbm use absolute_import instead of the the (diff)
downloadportage-6d96059e910ceae249dd492a93eab424d4827955.tar.gz
portage-6d96059e910ceae249dd492a93eab424d4827955.tar.bz2
portage-6d96059e910ceae249dd492a93eab424d4827955.zip
Add a new package set called @unavailable-binaries which matches
packages that are installed for which corresponding binary packages are not available.
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index dca683ee2..e24c2d0bf 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -64,6 +64,11 @@ class bindbapi(fakedbapi):
self.bintree.populate()
return fakedbapi.match(self, *pargs, **kwargs)
+ def cpv_exists(self, cpv):
+ if self.bintree and not self.bintree.populated:
+ self.bintree.populate()
+ return fakedbapi.cpv_exists(self, cpv)
+
def cpv_inject(self, cpv, **kwargs):
self._aux_cache.pop(cpv, None)
fakedbapi.cpv_inject(self, cpv, **kwargs)