diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2025-10-06 13:33:52 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-09 10:58:07 +0100 |
commit | 3ad95487752aed4cf91e7a5af678b6cca16ac1cc (patch) | |
tree | 9c93af728c95fde1bbe909b89cfe0493b7a65fd1 /meta/lib/oe/recipeutils.py | |
parent | df6bba8ab6f68450efa9e591a11a78ac0eb9cad2 (diff) | |
download | poky-3ad95487752aed4cf91e7a5af678b6cca16ac1cc.tar.gz |
recipeutils/get_recipe_upstream_version: pass ud.name instead of 'default'
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 <u.kleine-koenig@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
1073 | upversion = None | 1073 | upversion = None |
1074 | revision = None | 1074 | revision = None |
1075 | try: | 1075 | try: |
1076 | revision = ud.method.latest_revision(ud, rd, 'default') | 1076 | revision = ud.method.latest_revision(ud, rd, ud.name) |
1077 | upversion = pv | 1077 | upversion = pv |
1078 | if revision != ud.revision: | 1078 | if revision != ud.revision: |
1079 | upversion = upversion + "-new-commits-available" | 1079 | upversion = upversion + "-new-commits-available" |