From 8d1a3a68990967c3f8d6caa897cb90bb617eeba4 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 23 Dec 2011 12:01:28 +0100 Subject: [PATCH] spawn: fix Python syntax and so on --- pym/portage/package/ebuild/doebuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 083e0cefb..194cdbf27 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -18,6 +18,7 @@ from textwrap import wrap import time import warnings import zlib +import platform import portage portage.proxy.lazyimport.lazyimport(globals(), @@ -1409,7 +1410,7 @@ def spawn(mystring, mysettings, debug=0, free=0, droppriv=0, sesandbox=0, fakero keywords["opt_name"] += " fakeroot" keywords["fakeroot_state"] = os.path.join(mysettings["T"], "fakeroot.state") spawn_func = portage.process.spawn_fakeroot - elif sandbox and platform.system() == 'Darwin': + elif "sandbox" in features and platform.system() == 'Darwin': keywords["opt_name"] += " macossandbox" sbprefixpath = mysettings["PORTAGE_BUILDDIR"] -- 2.26.2