After commit a8e7b0f932 (base/package: Move source revision information from PV to PKGV) was integrated, having a recipe with a SRCREV that currently cannot be fetched would lead to an exception during parsing. Catch that exception and instead raise bb.parse.SkipRecipe. That way the parsing continues as it should. Instead you now get a meaningful error if you try build a recipe with a SRCREV that cannot be fetched, e.g.:
ERROR: Nothing PROVIDES 'psplash' psplash was skipped: Fetcher failure: Unable to resolve 'unknown-ref' in upstream git repository in git ls-remote output for git.yoctoproject.org/psplash Signed-off-by: Peter Kjellerstedt <peter.kjellerst...@axis.com> --- meta/classes-global/base.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass index 7c774d250f..fb55a6eee9 100644 --- a/meta/classes-global/base.bbclass +++ b/meta/classes-global/base.bbclass @@ -131,7 +131,13 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True): python fetcher_hashes_dummyfunc() { return } -fetcher_hashes_dummyfunc[vardepvalue] = "${@bb.fetch.get_hashvalue(d)}" +fetcher_hashes_dummyfunc[vardepvalue] = "${@validate_hashvalue(d)}" + +def validate_hashvalue(d): + try: + bb.fetch.get_hashvalue(d) + except bb.fetch2.FetchError as e: + raise bb.parse.SkipRecipe(e) addtask fetch do_fetch[dirs] = "${DL_DIR}"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#186722): https://lists.openembedded.org/g/openembedded-core/message/186722 Mute This Topic: https://lists.openembedded.org/mt/100960059/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-