From 3ad95487752aed4cf91e7a5af678b6cca16ac1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 6 Oct 2025 13:33:52 +0200 Subject: [PATCH] recipeutils/get_recipe_upstream_version: pass ud.name instead of 'default' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While all but the osc fetcher ignore the third parameter of their latest_revision implementation, 'default' isn't a valid name in general. Since commit 2515fbd10824 ("fetch: Drop multiple branch/revision support for single git urls") in bitbake a fetcher only handles a single branch/revision and the only sensible thing to pass is `ud.name`. (From OE-Core rev: cb36e8a62d7d31b75b3ddc6b84c1bdee09ebbc60) 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(-) diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 102789ce73..54bc3d7666 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -1073,7 +1073,7 @@ def get_recipe_upstream_version(rd): upversion = None revision = None try: - revision = ud.method.latest_revision(ud, rd, 'default') + revision = ud.method.latest_revision(ud, rd, ud.name) upversion = pv if revision != ud.revision: upversion = upversion + "-new-commits-available"