diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index dc025800e6..fbfa6938ac 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
| @@ -87,7 +87,10 @@ class Wget(FetchMethod): | |||
| 87 | if not ud.localfile: | 87 | if not ud.localfile: |
| 88 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) | 88 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) |
| 89 | 89 | ||
| 90 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp" | 90 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30" |
| 91 | |||
| 92 | if ud.type == 'ftp' or ud.type == 'ftps': | ||
| 93 | self.basecmd += " --passive-ftp" | ||
| 91 | 94 | ||
| 92 | if not self.check_certs(d): | 95 | if not self.check_certs(d): |
| 93 | self.basecmd += " --no-check-certificate" | 96 | self.basecmd += " --no-check-certificate" |
