Skip to contentSkip to conversation

fetch: use BPN instead

PATCH New [email protected] 1 participant 1 message Aug 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch: use BPN instead

From: Mingli Yu <[email protected]>

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
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/__init__.py +1 -1
index 0fb718b2..43d07e56 100644
@@ -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)
 
Signature · 1 line
2.25.1