diff options
author | 2010-04-28 01:01:41 -0700 | |
---|---|---|
committer | 2010-04-28 01:01:41 -0700 | |
commit | b3c018323e9a78b6bccfe5f20f41c40fdd2eb989 (patch) | |
tree | 3e868d8c38cf0636854da1148ea71fe67c4105d9 | |
parent | Remove old portage module namespace compatibility that's been deprecated (diff) | |
download | portage-idfetch-b3c018323e9a78b6bccfe5f20f41c40fdd2eb989.tar.gz portage-idfetch-b3c018323e9a78b6bccfe5f20f41c40fdd2eb989.tar.bz2 portage-idfetch-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 8a7112fd..e219244f 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: |