From: Zac Medico Date: Wed, 28 Apr 2010 08:01:41 +0000 (-0700) Subject: Inside bintree.inject(), discard cached metadata to ensure that X-Git-Tag: v2.2_rc68~627 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3c018323e9a78b6bccfe5f20f41c40fdd2eb989;p=portage.git Inside bintree.inject(), discard cached metadata to ensure that _pkgindex_entry doesn't return stale metadata. --- 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: