In action_metadata(), properly put the source cache in readonly mode.
authorZac Medico <zmedico@gentoo.org>
Mon, 21 Apr 2008 16:55:14 +0000 (16:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 21 Apr 2008 16:55:14 +0000 (16:55 -0000)
svn path=/main/trunk/; revision=9936

pym/_emerge/__init__.py

index 14626e5bf035da26782245e08bc4639eae8be802..84ea00005f7a6a0e6632eb98568971f5d55fa6b5 100644 (file)
@@ -6265,7 +6265,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)
 
        from portage.cache import util