When calling dbaip.aux_get() inside depgraph._select_package(), only pull the
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Aug 2008 08:06:30 +0000 (08:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Aug 2008 08:06:30 +0000 (08:06 -0000)
keys that are cached. This avoids triggering useless cache pulls for
INHERITED from the bindbapi.

svn path=/main/trunk/; revision=11360

pym/_emerge/__init__.py

index 4150ac6a9d34e7bbf55e1e1a69cfa28399c55a09..4ce2af7939b526360ab8eb531ce5db2af19d252c 100644 (file)
@@ -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,