summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 1fa67020c4..e8fbe89a3a 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -807,13 +807,14 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None):
807 'GIT_SSL_CAINFO', 807 'GIT_SSL_CAINFO',
808 'GIT_SMART_HTTP', 808 'GIT_SMART_HTTP',
809 'SSH_AUTH_SOCK', 'SSH_AGENT_PID', 809 'SSH_AUTH_SOCK', 'SSH_AGENT_PID',
810 'SOCKS5_USER', 'SOCKS5_PASSWD'] 810 'SOCKS5_USER', 'SOCKS5_PASSWD',
811 'DBUS_SESSION_BUS_ADDRESS']
811 812
812 if not cleanup: 813 if not cleanup:
813 cleanup = [] 814 cleanup = []
814 815
815 for var in exportvars: 816 for var in exportvars:
816 val = d.getVar(var, True) 817 val = d.getVar(var, True) or d.getVar("BB_ORIGENV", False).getVar(var, True)
817 if val: 818 if val:
818 cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd) 819 cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd)
819 820