Fix code in the portdbapi constructor to cache eclass_cache.cache instances
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 06:58:53 +0000 (06:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 06:58:53 +0000 (06:58 -0000)
where appropriate. (trunk r13293)

svn path=/main/branches/2.1.6/; revision=13464

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: