From: Zac Medico Date: Tue, 1 Jul 2008 08:29:41 +0000 (-0000) Subject: Also avoid sandbox violations in PreservedLibsRegistry.store(), for running X-Git-Tag: v2.2_rc2~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3bfd9039618327bc1c05d0ded0d2cd3ed586b4ec;p=portage.git Also avoid sandbox violations in PreservedLibsRegistry.store(), for running portage inside ebuild phases. svn path=/main/trunk/; revision=10866 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 4ca0b9b1d..1b13b8bc9 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -64,6 +64,8 @@ class PreservedLibsRegistry(object): """ Store the registry data to file. No need to call this if autocommit was enabled. """ + if os.environ.get("SANDBOX_ON") == "1": + return try: f = atomic_ofstream(self._filename) cPickle.dump(self._data, f)