Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version php
INFO: Current version: 8.4.14
INFO: Latest version:

After the patch:
$ devtool latest-version php
INFO: Current version: 8.4.14
INFO: Latest version: 8.4.14

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-oe/recipes-devtools/php/php_8.4.14.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-devtools/php/php_8.4.14.bb 
b/meta-oe/recipes-devtools/php/php_8.4.14.bb
index 483ba19ddd..ecec5ae04d 100644
--- a/meta-oe/recipes-devtools/php/php_8.4.14.bb
+++ b/meta-oe/recipes-devtools/php/php_8.4.14.bb
@@ -27,6 +27,9 @@ SRC_URI:append:class-target = " \
             file://php-fpm.service \
           "
 
+UPSTREAM_CHECK_URI = "https://github.com/php/php-src/releases";
+UPSTREAM_CHECK_REGEX = "releases/tag/php-(?P<pver>\d+(\.\d+)+)"
+
 S = "${UNPACKDIR}/php-${PV}"
 
 SRC_URI[sha256sum] = 
"f2139ce4cb7a6c5643ee98caa34e5c32ba841c2ba293e34a3d0357faa84bb3e7"
-- 
2.34.1

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

Reply via email to