public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12484 - main/trunk/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:10 +0000 (Mon, 12 Jan 2009)
New Revision: 12484

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Invalidate some more caches inside depgraph._set_args().


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2009-01-12 08:32:05 UTC (rev 12483)
+++ main/trunk/pym/_emerge/__init__.py	2009-01-12 09:51:10 UTC (rev 12484)
@@ -5634,6 +5634,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):
 		"""
@@ -8639,6 +8641,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 r12484 - main/trunk/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