* [PATCH] fetch2/local: Add debug to include chosen path
@ 2023-05-11 11:18 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2023-05-11 11:18 UTC (permalink / raw)
To: bitbake-devel
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>
---
lib/bb/fetch2/local.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/bb/fetch2/local.py b/lib/bb/fetch2/local.py
index 8baec7d2e8..7d7668110e 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
--
2.39.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-11 11:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-11 11:18 [PATCH] fetch2/local: Add debug to include chosen path Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).