diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-15 10:54:53 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-15 10:54:53 +0000 |
commit | dc43c514fa44d1cbfa978b635e44164f467be69f (patch) | |
tree | 8f9f4ed6752de62967a039422d957b4d98b0aee9 | |
parent | 7358acaa0ac73c7b118ad5f67e7433a58d98ac78 (diff) | |
download | portage-dc43c514fa44d1cbfa978b635e44164f467be69f.tar.gz portage-dc43c514fa44d1cbfa978b635e44164f467be69f.tar.bz2 portage-dc43c514fa44d1cbfa978b635e44164f467be69f.zip |
Trigger binarytree population on bindbapi.cpv_all() calls.
svn path=/main/trunk/; revision=4712
-rw-r--r-- | pym/portage.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index 178dacf62..86b0a41f7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4169,6 +4169,11 @@ class bindbapi(fakedbapi): self.bintree.populate() return fakedbapi.cp_list(self, *pargs, **kwargs) + def cpv_all(self): + if not self.bintree.populated: + self.bintree.populate() + return fakedbapi.cpv_all(self) + cptot=0 class vardbapi(dbapi): def __init__(self, root, categories=None, settings=None, vartree=None): |