From: Zac Medico Date: Sun, 9 Nov 2008 09:21:49 +0000 (-0000) Subject: Inside vardbapi.removeFromContents(), automatically clear the contents cache X-Git-Tag: v2.2_rc14~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00ee92fe252895615ed966203cf2ad2eadeb6531;p=portage.git Inside vardbapi.removeFromContents(), automatically clear the contents cache of the dblink instance in case an existing one was passed in. svn path=/main/trunk/; revision=11833 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 1fd001761..4930d3b9a 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1305,6 +1305,7 @@ class vardbapi(dbapi): f = atomic_ofstream(os.path.join(pkg.dbdir, "CONTENTS")) write_contents(new_contents, root, f) f.close() + pkg._clear_contents_cache() class _owners_cache(object): """