Skip to content
Snippets Groups Projects
Commit 689b521a authored by Rob Woolley's avatar Rob Woolley Committed by Steve Sakoman
Browse files

bitbake: wget: Make wget --passive-ftp option conditional on ftp/ftps


Fedora 40 introduces wget2 as a drop-in replacement for wget.  This
rewrite does not currently have support for FTP.  This causes
the wget fetcher to fail complaining about an unrecognized option.

Making --passive-ftp conditional based on the protocol used in
the SRC_URI limits the scope of the problem.  It also gives us
an opportunity to build the older wget as a host tool.

(Bitbake rev: 477f90f9515cb7cd093920cee5518f662cef2e05)

Signed-off-by: default avatarRob Woolley <rob.woolley@windriver.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f10e630fd7561746d835a4378e8777e78f56e44a)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent b61f2dc1
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,10 @@ class Wget(FetchMethod): ...@@ -88,7 +88,10 @@ class Wget(FetchMethod):
if not ud.localfile: if not ud.localfile:
ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", ".")) ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."))
self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30 --passive-ftp" self.basecmd = d.getVar("FETCHCMD_wget") or "/usr/bin/env wget -t 2 -T 30"
if ud.type == 'ftp' or ud.type == 'ftps':
self.basecmd += " --passive-ftp"
if not self.check_certs(d): if not self.check_certs(d):
self.basecmd += " --no-check-certificate" self.basecmd += " --no-check-certificate"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment