summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-19 13:52:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-19 14:00:32 -0800
commit9a2a321bab79749eb4fdae28a0ec7d97ab85e4a3 (patch)
treef961f44f7ad9e506dd9574f75f261d1f5a3fc756
parent7ca6e975e2d2a9dcd6a1dffd6d472bce85cf498c (diff)
downloadpoky-9a2a321bab79749eb4fdae28a0ec7d97ab85e4a3.tar.gz
poky-9a2a321bab79749eb4fdae28a0ec7d97ab85e4a3.tar.bz2
poky-9a2a321bab79749eb4fdae28a0ec7d97ab85e4a3.zip
bitbake: wget: Improve mkdir handling
If there there isn't a subdirectory to the downloadfilename, this was failing. This patch avoids that issue. (Bitbake rev: 58bfd8d88495d4cae808e23b7af40e65ad05450f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/wget.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 36c19cabd3..131016ce89 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -64,8 +64,9 @@ 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 not checkonly and 'downloadfilename' in ud.parm:
- bb.utils.mkdirhier(os.path.dirname(ud.localfile))
- basecmd += " -O ${DL_DIR}/" + ud.localfile
+ dldir = d.getVar("DL_DIR", True)
+ bb.utils.mkdirhier(os.path.dirname(dldir + os.sep + ud.localfile))
+ basecmd += " -O " + dldir + os.sep + ud.localfile
if checkonly:
fetchcmd = d.getVar("CHECKCOMMAND_wget", True) or d.expand(basecmd + " --spider '${URI}'")