1 |
Author: zmedico |
2 |
Date: 2009-04-30 06:58:53 +0000 (Thu, 30 Apr 2009) |
3 |
New Revision: 13464 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.6/pym/portage/dbapi/porttree.py |
7 |
Log: |
8 |
Fix code in the portdbapi constructor to cache eclass_cache.cache instances |
9 |
where appropriate. (trunk r13293) |
10 |
|
11 |
Modified: main/branches/2.1.6/pym/portage/dbapi/porttree.py |
12 |
=================================================================== |
13 |
--- main/branches/2.1.6/pym/portage/dbapi/porttree.py 2009-04-30 06:58:43 UTC (rev 13463) |
14 |
+++ main/branches/2.1.6/pym/portage/dbapi/porttree.py 2009-04-30 06:58:53 UTC (rev 13464) |
15 |
@@ -199,6 +199,7 @@ |
16 |
tree_db = eclass_dbs.get(porttree) |
17 |
if tree_db is None: |
18 |
tree_db = eclass_cache.cache(porttree) |
19 |
+ eclass_dbs[porttree] = tree_db |
20 |
if eclass_db is None: |
21 |
eclass_db = tree_db.copy() |
22 |
else: |