summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/wget.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-04 18:27:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-07 11:01:31 +0100
commit9586808572d06de4127f6a524e87e9ad75232423 (patch)
treee468525ad81fd6ea504ac57d945317b9125981ff /lib/bb/fetch2/wget.py
parent769b92b14a1dfbbf697b8f4bf9a5a828807fd885 (diff)
downloadbitbake-9586808572d06de4127f6a524e87e9ad75232423.tar.gz
bitbake/fetch2/wget: Add fallback/default wget commands
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/wget.py')
-rw-r--r--lib/bb/fetch2/wget.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index 9d361150e..98900ac42 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -54,12 +54,12 @@ class Wget(FetchMethod):
"""Fetch urls"""
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):
# 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:
- 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_decoded = list(decodeurl(uri))
@@ -78,7 +78,7 @@ class Wget(FetchMethod):
# Also, this used to happen if sourceforge sent us to the mirror page
if not os.path.exists(ud.localpath) and not checkonly:
raise FetchError("The fetch command returned success for url %s but %s doesn't exist?!" % (uri, ud.localpath), uri)
-
+
return True
def checkstatus(self, uri, ud, d):