summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/wget.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 92cc10785c..b3a3de571a 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -315,14 +315,7 @@ class Wget(FetchMethod):
315 # Avoid tramping the environment too much by using bb.utils.environment 315 # Avoid tramping the environment too much by using bb.utils.environment
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 = bb.fetch2.get_fetcher_environment(d)
319 origenv = d.getVar("BB_ORIGENV")
320 for name in bb.fetch2.FETCH_EXPORT_VARS:
321 value = d.getVar(name)
322 if not value and origenv:
323 value = origenv.getVar(name)
324 if value:
325 newenv[name] = value
326 319
327 with bb.utils.environment(**newenv): 320 with bb.utils.environment(**newenv):
328 import ssl 321 import ssl