bitbake: fetch/checkstatus(): do not print the URI twice in FetchError exception

Previously, there was duplicate clutter in the output, particularly if the
URI points to sstate cache items:

bb.fetch2.FetchError: Fetcher failure for URL: {uri}. URL {uri} doesn't work

(Bitbake rev: 61537b8a98b963e4af265e046d41407b32fa5935)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2024-01-08 15:26:47 +01:00 committed by Richard Purdie
parent 4e2fcdb383
commit 4890c6a7ca

View File

@ -1947,7 +1947,7 @@ class Fetch(object):
ret = m.try_mirrors(self, ud, self.d, mirrors, True)
if not ret:
raise FetchError("URL %s doesn't work" % u, u)
raise FetchError("URL doesn't work", u)
def unpack(self, root, urls=None):
"""