diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index fd25c42436..202ed0b9e1 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -63,6 +63,8 @@ class Wget(FetchMethod): | |||
63 | ud.basename = os.path.basename(ud.path) | 63 | ud.basename = os.path.basename(ud.path) |
64 | 64 | ||
65 | ud.localfile = data.expand(urllib.unquote(ud.basename), d) | 65 | ud.localfile = data.expand(urllib.unquote(ud.basename), d) |
66 | if not ud.localfile: | ||
67 | ud.localfile = data.expand(urllib.unquote(ud.host + ud.path).replace("/", "."), d) | ||
66 | 68 | ||
67 | self.basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate" | 69 | self.basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate" |
68 | 70 | ||