summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-11-26 19:54:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-26 20:57:30 +0000
commita0cf759537260f00311450e0dac41bf45b474454 (patch)
treeb1db8f5ec9f35948b1a112f067349ab1c998b0b1 /bitbake/lib/bb
parent408a0d8b25a67efb9caaf12b29b0cd48e132a3c2 (diff)
downloadpoky-a0cf759537260f00311450e0dac41bf45b474454.tar.gz
bitbake: fetch2/wget: Fix for mixed-up wget commands
wget commands for check and resume were mixed-up, leading to the following issues: 1. long running "NOTE: Preparing runqueue" reason: objects were downloaded, not spidered on the mirror 2. Failing network test in Build Appliance, because wget 1.14 (in use in BA) will fail if a file already exists. During the network connectivity test, index.php file was actually downloaded, not spidered (checked for existence on yoctoproject.org website), leading to wget failure. (Bitbake rev: d7a5185cae975eaca50a9785c6605e895dc7bb51) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index ea99198a7b..2808df6ac0 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -69,10 +69,10 @@ class Wget(FetchMethod):
69 basecmd += " -O ${DL_DIR}/" + ud.localfile 69 basecmd += " -O ${DL_DIR}/" + ud.localfile
70 70
71 if checkonly: 71 if checkonly:
72 fetchcmd = d.getVar("CHECKCOMMAND_wget", True) or d.expand(basecmd + " -c -P ${DL_DIR} '${URI}'") 72 fetchcmd = d.getVar("CHECKCOMMAND_wget", True) or d.expand(basecmd + " --spider '${URI}'")
73 elif os.path.exists(ud.localpath): 73 elif os.path.exists(ud.localpath):
74 # file exists, but we didnt complete it.. trying again.. 74 # file exists, but we didnt complete it.. trying again..
75 fetchcmd = d.getVar("RESUMECOMMAND_wget", True) or d.expand(basecmd + " --spider -P ${DL_DIR} '${URI}'") 75 fetchcmd = d.getVar("RESUMECOMMAND_wget", True) or d.expand(basecmd + " -c -P ${DL_DIR} '${URI}'")
76 else: 76 else:
77 fetchcmd = d.getVar("FETCHCOMMAND_wget", True) or d.expand(basecmd + " -P ${DL_DIR} '${URI}'") 77 fetchcmd = d.getVar("FETCHCOMMAND_wget", True) or d.expand(basecmd + " -P ${DL_DIR} '${URI}'")
78 78