summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/local.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py
index 1f4ec371a4..bfef0791a5 100644
--- a/bitbake/lib/bb/fetch2/local.py
+++ b/bitbake/lib/bb/fetch2/local.py
@@ -60,9 +60,10 @@ class Local(FetchMethod):
60 filesdir = data.getVar('FILESDIR', d, True) 60 filesdir = data.getVar('FILESDIR', d, True)
61 if filesdir: 61 if filesdir:
62 newpath = os.path.join(filesdir, path) 62 newpath = os.path.join(filesdir, path)
63 if not os.path.exists(newpath) and path.find("*") == -1: 63 if not os.path.exists(newpath) and path.find("*") == -1:
64 dldirfile = os.path.join(data.getVar("DL_DIR", d, True), os.path.basename(path)) 64 dldirfile = os.path.join(d.getVar("DL_DIR", True), path)
65 return dldirfile 65 bb.utils.mkdirhier(os.path.dirname(dldirfile))
66 return dldirfile
66 return newpath 67 return newpath
67 68
68 def need_update(self, url, ud, d): 69 def need_update(self, url, ud, d):