mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
df6bba8ab6
commit
3ad9548775
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user