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).

Change-Id: Ib3c2665257c344c312074519a03d96437866cd8d
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
(cherry picked from commit 6492c16955)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Samuli Piippo 2022-03-04 06:12:45 +00:00 committed by Qt Cherry-pick Bot
parent a476f413c6
commit 44966f276a

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: