public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r10866 - main/trunk/pym/portage/dbapi
@ 2008-07-01  8:29 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-07-01  8:29 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-07-01 08:29:41 +0000 (Tue, 01 Jul 2008)
New Revision: 10866

Modified:
   main/trunk/pym/portage/dbapi/vartree.py
Log:
Also avoid sandbox violations in PreservedLibsRegistry.store(), for running
portage inside ebuild phases.


Modified: main/trunk/pym/portage/dbapi/vartree.py
===================================================================
--- main/trunk/pym/portage/dbapi/vartree.py	2008-07-01 08:24:07 UTC (rev 10865)
+++ main/trunk/pym/portage/dbapi/vartree.py	2008-07-01 08:29:41 UTC (rev 10866)
@@ -64,6 +64,8 @@
 		""" 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)

-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-01  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01  8:29 [gentoo-commits] portage r10866 - main/trunk/pym/portage/dbapi Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox