diff options
-rw-r--r-- | pym/_emerge/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index e1f1f35e3..dc1d932a2 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -5634,6 +5634,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): """ @@ -8639,6 +8641,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: |