From eea590a6ef30d1bc2b9be766af6fa6cb5eb4413e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 31 May 2007 08:53:56 +0000 Subject: Implement bindbapi.cpv_all() since the one from fakedbapi won't populate the tree. svn path=/main/trunk/; revision=6693 --- pym/portage/dbapi/bintree.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit v1.2.3-1-g7c22