aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2022-03-04 06:12:45 +0000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-05 10:05:17 +0000
commitb10c715746f5be837fe33421a48f6018ed5021aa (patch)
treea4534bff8146f96feb89d073e3c1673a941a34be
parent6505a07cba776b43eb4d4e31119956da1b776244 (diff)
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 6492c169550c3750fe6c93592b38f182bca2c609) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--classes/srcrev-update.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/srcrev-update.bbclass b/classes/srcrev-update.bbclass
index 880af30..01ed8a2 100644
--- a/classes/srcrev-update.bbclass
+++ b/classes/srcrev-update.bbclass
@@ -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: