summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/local.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py
index 3a34f2ad7f..690532d63a 100644
--- a/bitbake/lib/bb/fetch2/local.py
+++ b/bitbake/lib/bb/fetch2/local.py
@@ -55,13 +55,16 @@ class Local(FetchMethod):
55 if path[0] != "/": 55 if path[0] != "/":
56 filespath = data.getVar('FILESPATH', d, True) 56 filespath = data.getVar('FILESPATH', d, True)
57 if filespath: 57 if filespath:
58 logger.debug(2, "Searching for %s in paths: \n%s" % (path, "\n ".join(filespath.split(":"))))
58 newpath = bb.utils.which(filespath, path) 59 newpath = bb.utils.which(filespath, path)
59 if not newpath: 60 if not newpath:
60 filesdir = data.getVar('FILESDIR', d, True) 61 filesdir = data.getVar('FILESDIR', d, True)
61 if filesdir: 62 if filesdir:
63 logger.debug(2, "Searching for %s in path: %s" % (path, filesdir))
62 newpath = os.path.join(filesdir, path) 64 newpath = os.path.join(filesdir, path)
63 if not os.path.exists(newpath) and path.find("*") == -1: 65 if not os.path.exists(newpath) and path.find("*") == -1:
64 dldirfile = os.path.join(d.getVar("DL_DIR", True), path) 66 dldirfile = os.path.join(d.getVar("DL_DIR", True), path)
67 logger.debug(2, "Defaulting to %s for %s" % (dldirfile, path))
65 bb.utils.mkdirhier(os.path.dirname(dldirfile)) 68 bb.utils.mkdirhier(os.path.dirname(dldirfile))
66 return dldirfile 69 return dldirfile
67 return newpath 70 return newpath