Inside bintree.inject(), discard cached metadata to ensure that
authorZac Medico <zmedico@gentoo.org>
Wed, 28 Apr 2010 08:01:41 +0000 (01:01 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 Apr 2010 08:01:41 +0000 (01:01 -0700)
_pkgindex_entry doesn't return stale metadata.

pym/portage/dbapi/bintree.py

index 8a7112fdedeb50306dadd6a29585312599dfb9f7..e219244f6c6c0b31b589c9bf32376546b1b16531 100644 (file)
@@ -949,6 +949,10 @@ class binarytree(object):
                        if self._remotepkgs is not None:
                                self._remotepkgs.pop(cpv, None)
 
+                       # Discard cached metadata to ensure that _pkgindex_entry
+                       # doesn't return stale metadata.
+                       self._aux_cache.pop(cpv, None)
+
                        try:
                                d = self._pkgindex_entry(cpv)
                        except portage.exception.InvalidDependString: