buildhistory: Update for bitbake changes

Bitbake is dropping the need for fetcher name iteration and multiple revisions
per url. Update the code to match (removal of the for loop).

(From OE-Core rev: 571e8c6730eb5b89f732d879487ae578ef04aaee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2025-03-18 23:01:35 +00:00
parent 110b2c124b
commit 07563ec1b5

View File

@@ -943,13 +943,12 @@ def _get_srcrev_values(d):
dict_tag_srcrevs = {}
for scm in scms:
ud = urldata[scm]
for name in ud.names:
autoinc, rev = ud.method.sortable_revision(ud, d, name)
dict_srcrevs[name] = rev
if 'tag' in ud.parm:
tag = ud.parm['tag'];
key = name+'_'+tag
dict_tag_srcrevs[key] = rev
autoinc, rev = ud.method.sortable_revision(ud, d, ud.name)
dict_srcrevs[ud.name] = rev
if 'tag' in ud.parm:
tag = ud.parm['tag'];
key = ud.name+'_'+tag
dict_tag_srcrevs[key] = rev
return (dict_srcrevs, dict_tag_srcrevs)
do_fetch[postfuncs] += "write_srcrev"