diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-09 09:21:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-09 09:21:49 +0000 |
commit | 00ee92fe252895615ed966203cf2ad2eadeb6531 (patch) | |
tree | 2125d2f40d3903fa6b86be11ac3afe35968f6d56 | |
parent | 4a78dd5f81449aebf764834d75693d2f157eb879 (diff) | |
download | portage-00ee92fe252895615ed966203cf2ad2eadeb6531.tar.gz portage-00ee92fe252895615ed966203cf2ad2eadeb6531.tar.bz2 portage-00ee92fe252895615ed966203cf2ad2eadeb6531.zip |
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
-rw-r--r-- | pym/portage/dbapi/vartree.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): """ |