From bea873db6dc3a237079d984e0333d6c6d01e48ec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 12 Jan 2009 09:51:27 +0000 Subject: [PATCH] Invalidate some more caches inside depgraph._set_args(). (trunk r12484) svn path=/main/branches/2.1.6/; revision=12485 --- pym/_emerge/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 2a2ded8dd..922a28d2d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -5618,6 +5618,8 @@ class depgraph(object): # 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 @@ class depgraph(object): 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: -- 2.26.2