diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-07 00:59:04 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-07 00:59:04 -0700 |
commit | 6d96059e910ceae249dd492a93eab424d4827955 (patch) | |
tree | b84769ab9ed5eeccf0fa6d0c2a58bf39c28bbae8 /pym/portage/dbapi/bintree.py | |
parent | dd0d6deeefe8e649ddd0950063ef036382bc4ea8 (diff) | |
download | portage-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.py | 5 |
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) |