summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2006-04-10 12:07:51 +0000
committerJason Stubbs <jstubbs@gentoo.org>2006-04-10 12:07:51 +0000
commit7b867885cd8bbf8d01ac638bf104027c9cf976ec (patch)
tree449c6ca9fb3f397165f87c1664c569f8785c5d25 /pym
parent9609b95e35a49157801138fb12ad72e7521fae86 (diff)
downloadportage-7b867885cd8bbf8d01ac638bf104027c9cf976ec.tar.gz
portage-7b867885cd8bbf8d01ac638bf104027c9cf976ec.tar.bz2
portage-7b867885cd8bbf8d01ac638bf104027c9cf976ec.zip
Ensure that binarytree.populate is called even when the first access is
via binarytree.dbapi.{aux_get,match}. svn path=/main/trunk/; revision=3117
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 0021ea95a..2d4963da0 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4090,7 +4090,14 @@ class bindbapi(fakedbapi):
self.cpvdict={}
self.cpdict={}
+ def match(self, *pargs, **kwargs):
+ if self.bintree and not self.bintree.populated:
+ self.bintree.populate()
+ return fakedbapi.match(self, *pargs, **kwargs)
+
def aux_get(self,mycpv,wants):
+ if self.bintree and not self.bintree.populated:
+ self.bintree.populate()
mysplit = string.split(mycpv,"/")
mylist = []
tbz2name = mysplit[1]+".tbz2"