summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-04-28 01:01:41 -0700
committerZac Medico <zmedico@gentoo.org>2010-04-28 01:01:41 -0700
commitb3c018323e9a78b6bccfe5f20f41c40fdd2eb989 (patch)
tree3e868d8c38cf0636854da1148ea71fe67c4105d9
parent2b6ddb35bc13df23b0af198dc737909892f110bd (diff)
downloadportage-b3c018323e9a78b6bccfe5f20f41c40fdd2eb989.tar.gz
portage-b3c018323e9a78b6bccfe5f20f41c40fdd2eb989.tar.bz2
portage-b3c018323e9a78b6bccfe5f20f41c40fdd2eb989.zip
Inside bintree.inject(), discard cached metadata to ensure that
_pkgindex_entry doesn't return stale metadata.
-rw-r--r--pym/portage/dbapi/bintree.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 8a7112fde..e219244f6 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -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: