From 07dcffe7ecb8838b56197088af9aaf4b1368fdf5 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 14 Feb 2013 21:33:04 +0000 Subject: 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 --- bitbake/lib/bb/fetch2/wget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 2808df6ac0..24eec318b4 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py @@ -65,7 +65,8 @@ class Wget(FetchMethod): basecmd = d.getVar("FETCHCMD_wget", True) or "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate" - if 'downloadfilename' in ud.parm: + if not checkonly and 'downloadfilename' in ud.parm: + bb.utils.mkdirhier(os.path.dirname(ud.localfile)) basecmd += " -O ${DL_DIR}/" + ud.localfile if checkonly: -- cgit v1.2.3-54-g00ecf