diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2022-08-15 16:46:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-01 10:07:00 +0100 |
commit | 4ab7125180127e22e3a781676abeaabed0822baf (patch) | |
tree | eb9199e32c1f411520f54a09b1453bbc6b462931 /bitbake | |
parent | af64b9b31ba92321537abc67edb54b4db8abc5cc (diff) | |
download | poky-4ab7125180127e22e3a781676abeaabed0822baf.tar.gz |
bitbake: 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
(Bitbake rev: d613e48c07d4b12219270c1359cbf2f390b848dd)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 0fb718b23e..43d07e56d3 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1236,7 +1236,7 @@ def get_checksum_file_list(d): | |||
1236 | if not found: | 1236 | if not found: |
1237 | bb.fatal(("Unable to get checksum for %s SRC_URI entry %s: file could not be found" | 1237 | bb.fatal(("Unable to get checksum for %s SRC_URI entry %s: file could not be found" |
1238 | "\nThe following paths were searched:" | 1238 | "\nThe following paths were searched:" |
1239 | "\n%s") % (d.getVar('PN'), os.path.basename(f), '\n'.join(paths))) | 1239 | "\n%s") % (d.getVar('BPN'), os.path.basename(f), '\n'.join(paths))) |
1240 | 1240 | ||
1241 | return " ".join(filelist) | 1241 | return " ".join(filelist) |
1242 | 1242 | ||