srcrev_update: fix update task with latest fetcher

Additional check was added into the bb.fetcher that needs to be
workaround in srcrev_update task. Otherwise task will fail with
error:

Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a
floating tag/branch without a fixed SRCREV yet doesn't call
bb.fetch2.get_srcrev() (use SRCPV in PV for OE).

Pick-to: 6.3 6.2
Change-Id: Ib3c2665257c344c312074519a03d96437866cd8d
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2022-03-04 06:12:45 +00:00
parent 0ef2348d49
commit 6492c16955

View File

@ -16,6 +16,7 @@ python do_srcrev_update() {
if len(scms) == 0:
return
d.setVar("__BBSEENSRCREV", "1")
for scm in scms:
ud = urldata[scm]
for name in ud.names: