libkas: Pass git proxy related environment variables

This allows to define GIT_PROXY_COMMAND="oe-git-proxy" outside of kas
and pass this to the build. Now we can pull from native git repos when
there is only a http proxy available.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka
2017-07-19 08:51:19 +02:00
committed by Daniel Wagner
parent a4c424c253
commit 100c7e047f
2 changed files with 5 additions and 1 deletions

View File

@@ -306,7 +306,8 @@ def get_build_environ(config, build_dir):
env.update({'BB_ENV_EXTRAWHITE': extra_white})
env_vars.extend(['SSH_AGENT_PID', 'SSH_AUTH_SOCK',
'SHELL', 'TERM'])
'SHELL', 'TERM',
'GIT_PROXY_COMMAND', 'NO_PROXY'])
for env_var in env_vars:
if env_var in os.environ: