From 441313eecbd45cfcbf0368e4d1d54bd2e9e59c6b Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Tue, 23 Sep 2025 17:47:02 +0200 Subject: meta/lib/oe/recipeutils.py: Handle multi-repo recipes for upgrade check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For a recipe that uses more than one git repo there isn't a single SRCREV variable. For example for linux-yocto there is SRCREV_machine and SRCREV_meta and rd.getVar("SRCREV") yields "INVALID". Luckily bb.fetch2 already handles all the details and exposes the currently used revision in ud. So just use that. (From OE-Core rev: ddf00d6aee955878c070327ee8d751fdb6099444) Signed-off-by: Uwe Kleine-König Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/lib/oe/recipeutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/recipeutils.py') diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 044f1bfa61..102789ce73 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -1075,7 +1075,7 @@ def get_recipe_upstream_version(rd): try: revision = ud.method.latest_revision(ud, rd, 'default') upversion = pv - if revision != rd.getVar("SRCREV"): + if revision != ud.revision: upversion = upversion + "-new-commits-available" except bb.fetch2.FetchError as e: bb.warn("Unable to obtain latest revision: {}".format(e)) -- cgit v1.2.3-54-g00ecf