summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-31 08:53:56 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-31 08:53:56 +0000
commiteea590a6ef30d1bc2b9be766af6fa6cb5eb4413e (patch)
tree2692e5bfa95112e229743e49c66b524e47a2abc3 /pym
parent42dfc5b7c2fa1bfd27d36df8e11f57c1da09b9d2 (diff)
downloadportage-eea590a6ef30d1bc2b9be766af6fa6cb5eb4413e.tar.gz
portage-eea590a6ef30d1bc2b9be766af6fa6cb5eb4413e.tar.bz2
portage-eea590a6ef30d1bc2b9be766af6fa6cb5eb4413e.zip
Implement bindbapi.cpv_all() since the one from fakedbapi won't populate the tree.
svn path=/main/trunk/; revision=6693
Diffstat (limited to 'pym')
-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 198e0b5ab..fd6292894 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -93,6 +93,11 @@ class bindbapi(fakedbapi):
self.bintree.populate()
return fakedbapi.cp_all(self)
+ def cpv_all(self):
+ if not self.bintree.populated:
+ self.bintree.populate()
+ return fakedbapi.cpv_all(self)
+
class binarytree(object):
"this tree scans for a list of all packages available in PKGDIR"
def __init__(self, root, pkgdir, virtual=None, settings=None, clone=None):