projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b6ddb3
)
Inside bintree.inject(), discard cached metadata to ensure that
author
Zac Medico
<zmedico@gentoo.org>
Wed, 28 Apr 2010 08:01:41 +0000
(
01:01
-0700)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/bintree.py
b/pym/portage/dbapi/bintree.py
index 8a7112fdedeb50306dadd6a29585312599dfb9f7..e219244f6c6c0b31b589c9bf32376546b1b16531 100644
(file)
--- 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: