From 31309fac3c0237a20903e5795e84ce55b1c6f491 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 17 Sep 2014 10:21:03 -0700 Subject: [PATCH] create_trees: whitelist PORTAGE_DEPCACHEDIR This fixes PORTAGE_DEPCACHEDIR to work for ROOT=/ when working with a different target ROOT. --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 66bfeb0..b29d106 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -580,7 +580,8 @@ def create_trees(config_root=None, target_root=None, trees=None, env=None, # environment to apply to the config that's associated # with ROOT != "/", so pass a nearly empty dict for the env parameter. clean_env = {} - for k in ('PATH', 'PORTAGE_GRPNAME', 'PORTAGE_REPOSITORIES', 'PORTAGE_USERNAME', + for k in ('PATH', 'PORTAGE_DEPCACHEDIR', 'PORTAGE_GRPNAME', + 'PORTAGE_REPOSITORIES', 'PORTAGE_USERNAME', 'PYTHONPATH', 'SSH_AGENT_PID', 'SSH_AUTH_SOCK', 'TERM', 'ftp_proxy', 'http_proxy', 'no_proxy', '__PORTAGE_TEST_HARDLINK_LOCKS'): -- 1.8.5.5