diff mbox series

[meta-networking,4/8] postfix: add UPSTREAM_CHECK_URI

Message ID 20251109134035.2741548-4-yi.zhao@windriver.com
State Under Review
Headers show
Series [[meta-networking] PATCH 2/8] netcat: inherit sourceforge-releases class | expand

Commit Message

Yi Zhao Nov. 9, 2025, 1:40 p.m. UTC
Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version postfix
INFO: Current version: 3.10.5
INFO: Latest version:

After the patch:
$ devtool latest-version postfix
INFO: Current version: 3.10.5
INFO: Latest version: 3.10.5

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb b/meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb
index edcdc1a8ca..8b3becda9f 100644
--- a/meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb
+++ b/meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb
@@ -30,7 +30,8 @@  SRC_URI = "http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${P
 
 SRC_URI[sha256sum] = "6a926bf702173861b08e49bcb51fca3a2f269f9a337f72ef159bf46052087e35"
 
-UPSTREAM_CHECK_REGEX = "postfix\-(?P<pver>3\.10(\.\d+)+).tar.gz"
+UPSTREAM_CHECK_URI = "https://www.postfix.org/announcements.html"
+UPSTREAM_CHECK_REGEX = "postfix-(?P<pver>\d+(\.\d+)+)"
 
 S = "${UNPACKDIR}/postfix-${PV}"