summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-09 08:06:30 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-09 08:06:30 +0000
commit387e5f3b40a217ec3d55ccc867e8d9da8479f78a (patch)
tree1e8fa1f03c6c0a540712cc4bd0ae0b36619024f5
parent868df4cb626001ef386d9b3ec8730d350364269d (diff)
downloadportage-387e5f3b40a217ec3d55ccc867e8d9da8479f78a.tar.gz
portage-387e5f3b40a217ec3d55ccc867e8d9da8479f78a.tar.bz2
portage-387e5f3b40a217ec3d55ccc867e8d9da8479f78a.zip
When calling dbaip.aux_get() inside depgraph._select_package(), only pull the
keys that are cached. This avoids triggering useless cache pulls for INHERITED from the bindbapi. svn path=/main/trunk/; revision=11360
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 4150ac6a9..4ce2af793 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -5380,8 +5380,7 @@ class depgraph(object):
if pkg is None:
calculated_use = False
try:
- metadata = izip(self._mydbapi_keys,
- db.aux_get(cpv, self._mydbapi_keys))
+ metadata = izip(db_keys, db.aux_get(cpv, db_keys))
except KeyError:
continue
pkg = Package(built=built, cpv=cpv,