Skip to contentSkip to conversation

adduser: add UPSTREAM_CHECK_URI

PATCH New Yi Zhao 1 participant 1 message Nov 8, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 adduser: add UPSTREAM_CHECK_URI

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

Before the patch:

$ devtool latest-version adduser
INFO: Current version: 3.118
INFO: Latest version:

After the patch:

$ devtool latest-version adduser
INFO: Current version: 3.118
INFO: Latest version: 3.153
---
 meta-perl/recipes-perl/adduser/adduser_3.118.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-perl/recipes-perl/adduser/adduser_3.118.bb +3 -0
index 9718a2ce9b..2fc03ecb94 100644
@@ -13,6 +13,9 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+sourcefiles/adduser/${
 
 SRC_URI[sha256sum] = "3e9eea661c9aac6b2c791bfcc1de3a9c6a422d45c8f3d38ed417737ed3166ffc"
 
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/adduser"
+UPSTREAM_CHECK_REGEX = "adduser_(?P<pver>\d+(\.\d+)+)"
+
 S = "${UNPACKDIR}/${BPN}"
 
 inherit cpan-base update-alternatives
Signature · 1 line
2.34.1