diff options
author | Paulo Neves <ptsneves@gmail.com> | 2022-07-08 22:54:07 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-15 12:22:08 +0100 |
commit | 9b398909bd446c32923e80125c4555463f87fa8e (patch) | |
tree | e3af178fec3ebddd99f83365ef50137e3175bea4 /bitbake/lib/bb/fetch2/__init__.py | |
parent | 43fa40ba51741fc9663680901346f8f64b534ff5 (diff) | |
download | poky-9b398909bd446c32923e80125c4555463f87fa8e.tar.gz |
bitbake: fetch: bb.fatal when trying to checksum non-existing files
If the local fetcher was not able to find the file anywhere but it
was included in the SRC_URI for checksumming just make it a fatal
error. Ensure a list of searched locations is included too to match
the runtime error that would have resulted.
(Bitbake rev: 5e3b2ad90d9cd0f248b1cb740637caa24442d101)
Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index ac557176d7..cd7dc4f132 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1235,7 +1235,9 @@ def get_checksum_file_list(d): | |||
1235 | if os.path.exists(f): | 1235 | if os.path.exists(f): |
1236 | bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN'), os.path.basename(f))) | 1236 | bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN'), os.path.basename(f))) |
1237 | else: | 1237 | else: |
1238 | bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN'), os.path.basename(f))) | 1238 | bb.fatal(("Unable to get checksum for %s SRC_URI entry %s: file could not be found" |
1239 | "\nThe following paths were searched:" | ||
1240 | "\n%s") % (d.getVar('PN'), os.path.basename(f), '\n'.join(paths))) | ||
1239 | filelist.append(f + ":" + str(os.path.exists(f))) | 1241 | filelist.append(f + ":" + str(os.path.exists(f))) |
1240 | 1242 | ||
1241 | return " ".join(filelist) | 1243 | return " ".join(filelist) |