* [gentoo-commits] portage r12485 - main/branches/2.1.6/pym/_emerge
@ 2009-01-12 9:51 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-01-12 9:51 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-01-12 09:51:27 +0000 (Mon, 12 Jan 2009)
New Revision: 12485
Modified:
main/branches/2.1.6/pym/_emerge/__init__.py
Log:
Invalidate some more caches inside depgraph._set_args(). (trunk r12484)
Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py 2009-01-12 09:51:10 UTC (rev 12484)
+++ main/branches/2.1.6/pym/_emerge/__init__.py 2009-01-12 09:51:27 UTC (rev 12485)
@@ -5618,6 +5618,8 @@
# Invalidate the package selection cache, since
# arguments influence package selections.
self._highest_pkg_cache.clear()
+ for trees in self._filtered_trees.itervalues():
+ trees["porttree"].dbapi._clear_cache()
def _greedy_slots(self, root_config, atom, blocker_lookahead=False):
"""
@@ -8623,6 +8625,10 @@
self._match_cache = {}
self._cpv_pkg_map = {}
+ def _clear_cache(self):
+ self._match_cache.clear()
+ self._cpv_pkg_map.clear()
+
def match(self, atom):
ret = self._match_cache.get(atom)
if ret is not None:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-12 9:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 9:51 [gentoo-commits] portage r12485 - main/branches/2.1.6/pym/_emerge Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox