Inherit sourceforge-releases class to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version ptpd
INFO: Current version: 2.3.1
INFO: Latest version:

After the patch:
$ devtool latest-version ptpd
INFO: Current version: 2.3.1
INFO: Latest version: 2.3.1

Signed-off-by: Yi Zhao <[email protected]>
---
 meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb 
b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb
index be0652dfbd..ed57ea8962 100644
--- a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb
+++ b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = 
"file://README;md5=0733e1b3788ab2ebbc63bf33a020da1d"
 
 DEPENDS = "libpcap"
 
-inherit autotools pkgconfig systemd
+inherit autotools pkgconfig systemd sourceforge-releases
 
 # return something like '1.2.3' or '1.2.3/rc1'
 #
@@ -32,8 +32,6 @@ SRC_URI = 
"http://downloads.sourceforge.net/project/ptpd/ptpd/${@get_sub(d)}/ptp
 SRC_URI[md5sum] = "253bab7ab51d969616ea811be1f132f3"
 SRC_URI[sha256sum] = 
"0dbf54dd2c178bd9fe62481d2c37513ee36636d8bf137cfdad96891490cdbf93"
 
-UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/ptpd/files/releases";
-
 S = "${UNPACKDIR}/ptpd-${PV}"
 
 EXTRA_OEMAKE = ""
-- 
2.34.1

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

Reply via email to