summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 253cabce75..2579a65ce6 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -316,12 +316,11 @@ class Wget(FetchMethod):
316 # to scope the changes to the build_opener request, which is when the 316 # to scope the changes to the build_opener request, which is when the
317 # environment lookups happen. 317 # environment lookups happen.
318 newenv = {} 318 newenv = {}
319 origenv = d.getVar("BB_ORIGENV")
319 for name in bb.fetch2.FETCH_EXPORT_VARS: 320 for name in bb.fetch2.FETCH_EXPORT_VARS:
320 value = d.getVar(name) 321 value = d.getVar(name)
321 if not value: 322 if not value and origenv:
322 origenv = d.getVar("BB_ORIGENV") 323 value = origenv.getVar(name)
323 if origenv:
324 value = origenv.getVar(name)
325 if value: 324 if value:
326 newenv[name] = value 325 newenv[name] = value
327 326