From 3bfd9039618327bc1c05d0ded0d2cd3ed586b4ec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 1 Jul 2008 08:29:41 +0000 Subject: Also avoid sandbox violations in PreservedLibsRegistry.store(), for running portage inside ebuild phases. svn path=/main/trunk/; revision=10866 --- pym/portage/dbapi/vartree.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3-1-g7c22