mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user