Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13293 - main/trunk/pym/portage/dbapi
Date: Tue, 07 Apr 2009 00:57:38
Message-Id: E1Lqzd9-0006p7-UB@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-04-07 00:57:35 +0000 (Tue, 07 Apr 2009)
3 New Revision: 13293
4
5 Modified:
6 main/trunk/pym/portage/dbapi/porttree.py
7 Log:
8 Fix code in the portdbapi constructor to cache eclass_cache.cache instances
9 where appropriate.
10
11
12 Modified: main/trunk/pym/portage/dbapi/porttree.py
13 ===================================================================
14 --- main/trunk/pym/portage/dbapi/porttree.py 2009-04-06 23:25:22 UTC (rev 13292)
15 +++ main/trunk/pym/portage/dbapi/porttree.py 2009-04-07 00:57:35 UTC (rev 13293)
16 @@ -199,6 +199,7 @@
17 tree_db = eclass_dbs.get(porttree)
18 if tree_db is None:
19 tree_db = eclass_cache.cache(porttree)
20 + eclass_dbs[porttree] = tree_db
21 if eclass_db is None:
22 eclass_db = tree_db.copy()
23 else: