From: Zac Medico Date: Thu, 30 Apr 2009 06:58:53 +0000 (-0000) Subject: Fix code in the portdbapi constructor to cache eclass_cache.cache instances X-Git-Tag: v2.1.6.12~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ed4411efe6d9002c9e39c2eeb2fb92bb660a2f3;p=portage.git Fix code in the portdbapi constructor to cache eclass_cache.cache instances where appropriate. (trunk r13293) svn path=/main/branches/2.1.6/; revision=13464 --- 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: