summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index e8fbe89a3a..6ef0c6fe7a 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -813,8 +813,9 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None):
813 if not cleanup: 813 if not cleanup:
814 cleanup = [] 814 cleanup = []
815 815
816 origenv = d.getVar("BB_ORIGENV", False)
816 for var in exportvars: 817 for var in exportvars:
817 val = d.getVar(var, True) or d.getVar("BB_ORIGENV", False).getVar(var, True) 818 val = d.getVar(var, True) or (origenv and origenv.getVar(var, True))
818 if val: 819 if val:
819 cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd) 820 cmd = 'export ' + var + '=\"%s\"; %s' % (val, cmd)
820 821