On 11/17/25 12:27 AM, Richard Purdie wrote:
On Sun, 2025-11-16 at 04:18 -0800, Robert Yang via lists.openembedded.org wrote:
From: Robert Yang <[email protected]>

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 <[email protected]>
---
  meta/classes/buildhistory.bbclass | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/meta/classes/buildhistory.bbclass 
b/meta/classes/buildhistory.bbclass
index 4a380c10c6..859fded472 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -57,6 +57,11 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"
  PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
  PATCH_GIT_USER_NAME ?= "OpenEmbedded"
+python() {
+    if not d.getVar('PRSERV_HOST'):
+        bb.warn('PRServer is not enabled, version-going-backwards check may 
fail!')
+}
+


Shouldn't this be conditional on that test being enabled?

Yes, you're right, I will send a V2 for it.

// Robert


Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#226479): 
https://lists.openembedded.org/g/openembedded-core/message/226479
Mute This Topic: https://lists.openembedded.org/mt/116320341/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to