summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 21:08:24 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 21:08:24 +0000
commitf71a93a5267994aac465af3b3eb49fc8721c8347 (patch)
tree2a317e8714be47a80e06ee7732f2d0ec24cdcc85 /pym
parenta962384050725e958bd5221d1d7d3441e06830a0 (diff)
downloadportage-f71a93a5267994aac465af3b3eb49fc8721c8347.tar.gz
portage-f71a93a5267994aac465af3b3eb49fc8721c8347.tar.bz2
portage-f71a93a5267994aac465af3b3eb49fc8721c8347.zip
Fix vardbapi.move_ent and aux_update to clear relevant caches. (trunk r15489)
svn path=/main/branches/2.1.7/; revision=15690
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 1c08c7007..75143a318 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -220,6 +220,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]
@@ -616,6 +618,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)