summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-11 12:18:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-25 10:33:15 +0100
commit222c5668a6c1e24c8fac1b89296f0a39d30c9de7 (patch)
tree3c7acda88ef9d89ba716d7e74d960e69679739ac /bitbake/lib/bb/fetch2
parent71eef845bd6ee8e8f488dca32896b0cc87cf4032 (diff)
downloadpoky-222c5668a6c1e24c8fac1b89296f0a39d30c9de7.tar.gz
bitbake: fetch2/local: Add debug to include chosen path
The current debug lists all the potential search paths but not the end result which isn't helpful for debugging. Tweak to include the end result. (Bitbake rev: a98b8dbb5fbd937a9530793485cf7c68fdd75cc2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/local.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py
index 8baec7d2e8..7d7668110e 100644
--- a/bitbake/lib/bb/fetch2/local.py
+++ b/bitbake/lib/bb/fetch2/local.py
@@ -51,11 +51,13 @@ class Local(FetchMethod):
51 path = urldata.decodedurl 51 path = urldata.decodedurl
52 newpath = path 52 newpath = path
53 if path[0] == "/": 53 if path[0] == "/":
54 logger.debug2("Using absolute %s" % (path))
54 return [path] 55 return [path]
55 filespath = d.getVar('FILESPATH') 56 filespath = d.getVar('FILESPATH')
56 if filespath: 57 if filespath:
57 logger.debug2("Searching for %s in paths:\n %s" % (path, "\n ".join(filespath.split(":")))) 58 logger.debug2("Searching for %s in paths:\n %s" % (path, "\n ".join(filespath.split(":"))))
58 newpath, hist = bb.utils.which(filespath, path, history=True) 59 newpath, hist = bb.utils.which(filespath, path, history=True)
60 logger.debug2("Using %s for %s" % (newpath, path))
59 searched.extend(hist) 61 searched.extend(hist)
60 return searched 62 return searched
61 63