From b3c018323e9a78b6bccfe5f20f41c40fdd2eb989 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 28 Apr 2010 01:01:41 -0700 Subject: [PATCH] Inside bintree.inject(), discard cached metadata to ensure that _pkgindex_entry doesn't return stale metadata. --- pym/portage/dbapi/bintree.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.26.2