user_config_dir = os.path.join(os.sep, eprefix, USER_CONFIG_PATH)
features = []
- if not portage.process.sandbox_capable:
+ if not portage.process.sandbox_capable or \
+ os.environ.get("SANDBOX_ON") == "1":
features.append("-sandbox")
# Since egencache ignores settings from the calling environment,
"PYTHONPATH" : pythonpath,
}
+ if os.environ.get("SANDBOX_ON") == "1":
+ # avoid problems from nested sandbox instances
+ env["FEATURES"] = "-sandbox"
+
dirs = [homedir, license_dir, profiles_dir, distdir]
try:
for d in dirs: