aboutsummaryrefslogtreecommitdiffstats
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:32:16 +0100
commita98b8dbb5fbd937a9530793485cf7c68fdd75cc2 (patch)
tree312c2aab3f5befc43a3048904c4ddeae66167828
parentada5ea712cc42fff8c55bd261ee6d7579efd4a68 (diff)
downloadbitbake-a98b8dbb5fbd937a9530793485cf7c68fdd75cc2.tar.gz
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. 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>
-rw-r--r--lib/bb/fetch2/local.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/fetch2/local.py b/lib/bb/fetch2/local.py
index 8baec7d2e..7d7668110 100644
--- a/lib/bb/fetch2/local.py
+++ b/lib/bb/fetch2/local.py
@@ -51,11 +51,13 @@ class Local(FetchMethod):
path = urldata.decodedurl
newpath = path
if path[0] == "/":
+ logger.debug2("Using absolute %s" % (path))
return [path]
filespath = d.getVar('FILESPATH')
if filespath:
logger.debug2("Searching for %s in paths:\n %s" % (path, "\n ".join(filespath.split(":"))))
newpath, hist = bb.utils.which(filespath, path, history=True)
+ logger.debug2("Using %s for %s" % (newpath, path))
searched.extend(hist)
return searched