summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-28 03:42:22 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-28 03:42:22 +0000
commit652a94233e65ba6a83929edc3319b0f7676bb77b (patch)
tree259c0e1eeda209f28bc22cf4a64de2d5df346927 /pym
parent5d1ba0c7c6cb1d3d5f6880c6547a030f26fb0356 (diff)
downloadportage-652a94233e65ba6a83929edc3319b0f7676bb77b.tar.gz
portage-652a94233e65ba6a83929edc3319b0f7676bb77b.tar.bz2
portage-652a94233e65ba6a83929edc3319b0f7676bb77b.zip
Fix vardbapi.move_ent and aux_update to clear relevant caches.
svn path=/main/trunk/; revision=15489
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 0ccc4ddd4..5d594803b 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -949,6 +949,8 @@ class vardbapi(dbapi):
#dest already exists; keep this puppy where it is.
continue
_movefile(origpath, newpath, mysettings=self.settings)
+ self._clear_pkg_cache(self._dblink(mycpv))
+ self._clear_pkg_cache(self._dblink(mynewcpv))
# We need to rename the ebuild now.
old_pf = catsplit(mycpv)[1]
@@ -1345,6 +1347,7 @@ class vardbapi(dbapi):
treetype="vartree", vartree=self.vartree)
if not mylink.exists():
raise KeyError(cpv)
+ self._clear_pkg_cache(mylink)
for k, v in values.items():
if v:
mylink.setfile(k, v)