summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-07 00:57:35 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-07 00:57:35 +0000
commit1785c1129564064b26b07ecbf26047d86a962d80 (patch)
tree00785519418b9af66253aa63aaafaf3dceeb1e52
parent665a7b56a269866dc7ecf5854aec3357194891c1 (diff)
downloadportage-1785c1129564064b26b07ecbf26047d86a962d80.tar.gz
portage-1785c1129564064b26b07ecbf26047d86a962d80.tar.bz2
portage-1785c1129564064b26b07ecbf26047d86a962d80.zip
Fix code in the portdbapi constructor to cache eclass_cache.cache instances
where appropriate. svn path=/main/trunk/; revision=13293
-rw-r--r--pym/portage/dbapi/porttree.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 1a896b754..d025be29a 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -199,6 +199,7 @@ class portdbapi(dbapi):
tree_db = eclass_dbs.get(porttree)
if tree_db is None:
tree_db = eclass_cache.cache(porttree)
+ eclass_dbs[porttree] = tree_db
if eclass_db is None:
eclass_db = tree_db.copy()
else: