Add note about depgraph/portdbapi caching.
authorZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 03:29:10 +0000 (20:29 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 5 Oct 2010 03:29:10 +0000 (20:29 -0700)
pym/_emerge/depgraph.py

index ac23f4ba09af17894ac4afa9e352e9b61e69763a..acca40eb0f6744c48a9c6bda5f21a1310f55770a 100644 (file)
@@ -2541,6 +2541,9 @@ class depgraph(object):
                                                # Make sure that cpv from the current repo satisfies the atom.
                                                # This might not be the case if there are several repos with
                                                # the same cpv, but different metadata keys, like SLOT.
+                                               # Also, for portdbapi, parts of the match that require
+                                               # metadata access are deferred until we have cached the
+                                               # metadata in a Package instance.
                                                if not atom_set.findAtomForPackage(pkg,
                                                        modified_use=self._pkg_use_enabled(pkg)):
                                                        continue