diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2022-08-15 16:46:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-31 12:21:50 +0100 |
commit | d613e48c07d4b12219270c1359cbf2f390b848dd (patch) | |
tree | 13b00c5ec32e9c4123f6e7d30f4b3e0ea1221b33 | |
parent | b0506480baa9bcf3ef645b0aed5a07ad9950245c (diff) | |
download | bitbake-contrib-d613e48c07d4b12219270c1359cbf2f390b848dd.tar.gz |
fetch: use BPN instead
When checking for the non-existing file, BPN is actually the acutal recipe
name. And we should use BPN for the error message and it also fix the below
test when multilib is enabled.
$ oe-selftest -r bbtests.BitbakeTests.test_invalid_recipe_src_uri
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 0fb718b23..43d07e56d 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1236,7 +1236,7 @@ def get_checksum_file_list(d): if not found: bb.fatal(("Unable to get checksum for %s SRC_URI entry %s: file could not be found" "\nThe following paths were searched:" - "\n%s") % (d.getVar('PN'), os.path.basename(f), '\n'.join(paths))) + "\n%s") % (d.getVar('BPN'), os.path.basename(f), '\n'.join(paths))) return " ".join(filelist) |