aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-28 21:37:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-28 21:37:20 +0100
commit935ab36f64d25c09f83209cd369714c2bc89aa7f (patch)
tree895711290002bb3e956af08bf80273d0e272460f
parenta0d8108eba8d542707740d00c66c1c5f5b963f18 (diff)
downloadbitbake-935ab36f64d25c09f83209cd369714c2bc89aa7f.tar.gz
fetch2/local: Mention the value of localpath in failure message
We have an obtuse rare and intermittent bitbake fetch failure. Understanding the value of ud.localpath at the time of failure would be helpful to debug it further. Tweak the debugging to provide this in the output. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/local.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/local.py b/lib/bb/fetch2/local.py
index 0bb987c64..5332faafe 100644
--- a/lib/bb/fetch2/local.py
+++ b/lib/bb/fetch2/local.py
@@ -72,7 +72,7 @@ class Local(FetchMethod):
filespath = d.getVar('FILESPATH')
if filespath:
locations = filespath.split(":")
- msg = "Unable to find file " + urldata.url + " anywhere. The paths that were searched were:\n " + "\n ".join(locations)
+ msg = "Unable to find file " + urldata.url + " anywhere to download to " + urldata.localpath + ". The paths that were searched were:\n " + "\n ".join(locations)
raise FetchError(msg)
return True