In action_metadata(), properly put the source cache in readonly mode.
authorZac Medico <zmedico@gentoo.org>
Mon, 21 Apr 2008 16:56:04 +0000 (16:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 21 Apr 2008 16:56:04 +0000 (16:56 -0000)
(trunk r9936)

svn path=/main/branches/2.1.2/; revision=9937

bin/emerge

index 2602c754c52862fb5187a2e20733eb48d9ded1e0..85160bc401f1ae98c1e7a836d99d942bc2893944 100755 (executable)
@@ -6279,7 +6279,7 @@ def action_metadata(settings, portdb, myopts):
        ec = portage.eclass_cache.cache(portdb.porttree_root)
        myportdir = os.path.realpath(settings["PORTDIR"])
        cm = settings.load_best_module("portdbapi.metadbmodule")(
-               myportdir, "metadata/cache", portage.auxdbkeys[:])
+               myportdir, "metadata/cache", portage.auxdbkeys[:], readonly=True)
 
        import cache.util