mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
bitbake/fetch2/wget: Add fallback/default wget commands
(Bitbake rev: 9586808572d06de4127f6a524e87e9ad75232423) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -54,12 +54,12 @@ class Wget(FetchMethod):
|
|||||||
"""Fetch urls"""
|
"""Fetch urls"""
|
||||||
|
|
||||||
if checkonly:
|
if checkonly:
|
||||||
fetchcmd = data.getVar("CHECKCOMMAND_wget", d, True)
|
fetchcmd = data.getVar("CHECKCOMMAND_wget", d, True) or d.expand("/usr/bin/env wget --spider -t 5 --passive-ftp --no-check-certificate -P ${DL_DIR} '${URI}'")
|
||||||
elif os.path.exists(ud.localpath):
|
elif os.path.exists(ud.localpath):
|
||||||
# file exists, but we didnt complete it.. trying again..
|
# file exists, but we didnt complete it.. trying again..
|
||||||
fetchcmd = data.getVar("RESUMECOMMAND_wget", d, True)
|
fetchcmd = data.getVar("RESUMECOMMAND_wget", d, True) or d.expand("/usr/bin/env wget -c -t 5 -nv --passive-ftp --no-check-certificate -P ${DL_DIR} '${URI}'")
|
||||||
else:
|
else:
|
||||||
fetchcmd = data.getVar("FETCHCOMMAND_wget", d, True)
|
fetchcmd = data.getVar("FETCHCOMMAND_wget", d, True) or d.expand("/usr/bin/env wget -t 5 -nv --passive-ftp --no-check-certificate -P ${DL_DIR} '${URI}'")
|
||||||
|
|
||||||
uri = uri.split(";")[0]
|
uri = uri.split(";")[0]
|
||||||
uri_decoded = list(decodeurl(uri))
|
uri_decoded = list(decodeurl(uri))
|
||||||
|
|||||||
Reference in New Issue
Block a user