Inside vardbapi.removeFromContents(), automatically clear the contents cache
authorZac Medico <zmedico@gentoo.org>
Sun, 9 Nov 2008 09:21:49 +0000 (09:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 9 Nov 2008 09:21:49 +0000 (09:21 -0000)
of the dblink instance in case an existing one was passed in.

svn path=/main/trunk/; revision=11833

pym/portage/dbapi/vartree.py

index 1fd00176150f0d9a3058895b6e79277ccf83e5f8..4930d3b9a7670d6f31a126be8f3564e9f4e3fee8 100644 (file)
@@ -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):
                """