Fix code in the portdbapi constructor to cache eclass_cache.cache instances
authorZac Medico <zmedico@gentoo.org>
Tue, 7 Apr 2009 00:57:35 +0000 (00:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 7 Apr 2009 00:57:35 +0000 (00:57 -0000)
where appropriate.

svn path=/main/trunk/; revision=13293

pym/portage/dbapi/porttree.py

index 1a896b754d5062687957017344de8c0508602b5c..d025be29af6ef307ac9b6bfae16e73111e4a22f7 100644 (file)
@@ -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: