fetch2: include full path to recipe in 'SRC_URI not found' warnings
PATCH 1/1 fetch2: include full path to recipe in 'SRC_URI not found' warnings
Showing PN only is ambiguous if multiple versions of a recipe are present.
Signed-off-by Andre McCurdy <[email protected]>
--- lib/bb/fetch2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/fetch2/__init__.py +2 -2
@@ -1102,9 +1102,9 @@ def get_checksum_file_list(d): if f.startswith(dl_dir): # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else if os.path.exists(f): - bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('FILE', True), os.path.basename(f))) else: - bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('FILE', True), os.path.basename(f))) filelist.append(f + ":" + str(os.path.exists(f))) return " ".join(filelist)
Signature · 1 line
1.9.1