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 b3a3de571a..9bcb0d4b7a 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
| @@ -88,7 +88,10 @@ class Wget(FetchMethod): | |||
| 88 | if not ud.localfile: | 88 | if not ud.localfile: |
| 89 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) | 89 | ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) |
| 90 | 90 | ||
| 91 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp" | 91 | self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30" |
| 92 | |||
| 93 | if ud.type == 'ftp' or ud.type == 'ftps': | ||
| 94 | self.basecmd += " --passive-ftp" | ||
| 92 | 95 | ||
| 93 | if not self.check_certs(d): | 96 | if not self.check_certs(d): |
| 94 | self.basecmd += " --no-check-certificate" | 97 | self.basecmd += " --no-check-certificate" |
