diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-01 08:29:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-01 08:29:41 +0000 |
commit | 3bfd9039618327bc1c05d0ded0d2cd3ed586b4ec (patch) | |
tree | aa0810a31fdcac345f89015db1bd1d47c102aa70 | |
parent | 20a3aeb85d88d767f16e1f8b27725ba0f925675a (diff) | |
download | portage-3bfd9039618327bc1c05d0ded0d2cd3ed586b4ec.tar.gz portage-3bfd9039618327bc1c05d0ded0d2cd3ed586b4ec.tar.bz2 portage-3bfd9039618327bc1c05d0ded0d2cd3ed586b4ec.zip |
Also avoid sandbox violations in PreservedLibsRegistry.store(), for running
portage inside ebuild phases.
svn path=/main/trunk/; revision=10866
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |