public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14909 - main/trunk/pym/_emerge
@ 2009-11-27 23:33 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-11-27 23:33 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-11-27 23:33:06 +0000 (Fri, 27 Nov 2009)
New Revision: 14909

Modified:
   main/trunk/pym/_emerge/FakeVartree.py
Log:
In FakeVartree.sync(), skip the aux_get wrapper when populating old-style
virtuals, in order to avoid unwanted cache generation with --nodeps (reported
by Arfrever).


Modified: main/trunk/pym/_emerge/FakeVartree.py
===================================================================
--- main/trunk/pym/_emerge/FakeVartree.py	2009-11-27 23:02:57 UTC (rev 14908)
+++ main/trunk/pym/_emerge/FakeVartree.py	2009-11-27 23:33:06 UTC (rev 14909)
@@ -106,7 +106,13 @@
 
 		# Populate the old-style virtuals using the cached values.
 		if not self.settings.treeVirtuals:
-			self.settings._populate_treeVirtuals(self)
+			# Skip the aux_get wrapper here, to avoid unwanted
+			# cache generation.
+			try:
+				self.dbapi.aux_get = self._aux_get
+				self.settings._populate_treeVirtuals(self)
+			finally:
+				self.dbapi.aux_get = self._aux_get_wrapper
 
 	def _sync(self):
 




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-27 23:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-27 23:33 [gentoo-commits] portage r14909 - 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