Message ID | 20251006113352.2448172-1-u.kleine-koenig@baylibre.com |
---|---|
State | Accepted, archived |
Commit | cb36e8a62d7d31b75b3ddc6b84c1bdee09ebbc60 |
Headers | show |
Series | recipeutils/get_recipe_upstream_version: pass ud.name instead of 'default' | expand |
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 102789ce735a..54bc3d766627 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"
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`. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> --- meta/lib/oe/recipeutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 9f1a1fc1a163e74602d8a359483087f1117f23c2