diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 1cc445a426..0c61dfa20d 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -33,7 +33,6 @@ import logging | |||
33 | import bb | 33 | import bb |
34 | import bb.progress | 34 | import bb.progress |
35 | import urllib.request, urllib.parse, urllib.error | 35 | import urllib.request, urllib.parse, urllib.error |
36 | from bb import data | ||
37 | from bb.fetch2 import FetchMethod | 36 | from bb.fetch2 import FetchMethod |
38 | from bb.fetch2 import FetchError | 37 | from bb.fetch2 import FetchError |
39 | from bb.fetch2 import logger | 38 | from bb.fetch2 import logger |
@@ -84,9 +83,9 @@ class Wget(FetchMethod): | |||
84 | else: | 83 | else: |
85 | ud.basename = os.path.basename(ud.path) | 84 | ud.basename = os.path.basename(ud.path) |
86 | 85 | ||
87 | ud.localfile = data.expand(urllib.parse.unquote(ud.basename), d) | 86 | ud.localfile = d.expand(urllib.parse.unquote(ud.basename)) |
88 | if not ud.localfile: | 87 | if not ud.localfile: |
89 | ud.localfile = data.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."), d) | 88 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) |
90 | 89 | ||
91 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate" | 90 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate" |
92 | 91 | ||