summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-14 21:33:04 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-15 12:12:35 (GMT)
commit07dcffe7ecb8838b56197088af9aaf4b1368fdf5 (patch)
treeb92a8daa32706bff724d7cf25f9b86443fc9ca6c
parentf966c544aa4da61a19bc0d751c2bbf0f66028791 (diff)
downloadpoky-07dcffe7ecb8838b56197088af9aaf4b1368fdf5.tar.gz
bitbake: wget: Only use -O option when not spidering
If we pass the -O option whilst spidering, empty files are created which is not desired. We also need to ensure any subdirectories are created when using the downloadfilename parameter. (Bitbake rev: d5f78e98d5aba36c95288fbaac267c2d54537b02) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/wget.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 2808df6..24eec31 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -65,7 +65,8 @@ class Wget(FetchMethod):
65 65
66 basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate" 66 basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate"
67 67
68 if 'downloadfilename' in ud.parm: 68 if not checkonly and 'downloadfilename' in ud.parm:
69 bb.utils.mkdirhier(os.path.dirname(ud.localfile))
69 basecmd += " -O ${DL_DIR}/" + ud.localfile 70 basecmd += " -O ${DL_DIR}/" + ud.localfile
70 71
71 if checkonly: 72 if checkonly: