| Message ID | c04ffc4774e13357136539bea81f3e4e95529d67.1763342137.git.liezhi.yang@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | [v2,1/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled | expand |
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 4a380c10c6..831134f15f 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -57,6 +57,13 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" 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 #