summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-11-27 23:33:06 +0000
committerZac Medico <zmedico@gentoo.org>2009-11-27 23:33:06 +0000
commitec2e84fee7a2e9f7a175c753b22536df3b3ab21a (patch)
treedf37e7afadf273604b308c86ac7fb3dc9f25811b
parent39f550ce1d06d7d840958e12f0635b3007701220 (diff)
downloadportage-ec2e84fee7a2e9f7a175c753b22536df3b3ab21a.tar.gz
portage-ec2e84fee7a2e9f7a175c753b22536df3b3ab21a.tar.bz2
portage-ec2e84fee7a2e9f7a175c753b22536df3b3ab21a.zip
In FakeVartree.sync(), skip the aux_get wrapper when populating old-stylev2.2_rc53
virtuals, in order to avoid unwanted cache generation with --nodeps (reported by Arfrever). svn path=/main/trunk/; revision=14909
-rw-r--r--pym/_emerge/FakeVartree.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/_emerge/FakeVartree.py b/pym/_emerge/FakeVartree.py
index 3a9d5d639..728d44a71 100644
--- a/pym/_emerge/FakeVartree.py
+++ b/pym/_emerge/FakeVartree.py
@@ -106,7 +106,13 @@ class FakeVartree(portage.vartree):
# 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):