The version-going-backwards check may fail without PRServer, and it's not easy
to debug, so warn for that.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
PATCH_GIT_USER_NAME ?= "OpenEmbedded"
+python() {
+ warn_qa = d.getVar('WARN_QA')
+ error_qa = d.getVar('ERROR_QA')
+ if ('version-going-backwards' in warn_qa + error_qa) and not d.getVar('PRSERV_HOST'):
+ bb.warn('PRServer is not enabled, version-going-backwards check may fail!')
+}
+
#
# Write out the contents of the sysroot
#