summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/local.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-02 20:48:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-02 23:04:27 +0100
commit6ffb679c07297f63b069e7419efc2723efdee687 (patch)
treeefbd5bf1c89444bacc65cbefee0092916392412f /bitbake/lib/bb/fetch2/local.py
parent43a25fff557bf4a301f066672904eb0bf05f320f (diff)
downloadpoky-6ffb679c07297f63b069e7419efc2723efdee687.tar.gz
bitbake: fetch2/local: Add search paths to the debug log to improve log usefullness
(Bitbake rev: 2054c7d99933c1523d4b5c7f65d37c69b8472e47) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/local.py')
-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