Skip to contentSkip to conversation

nmap: set UPSTREAM_CHECK_REGEX

PATCH New Yi Zhao 1 participant 1 message Apr 12, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 nmap: set UPSTREAM_CHECK_REGEX

Set UPSTREAM_CHECK_REGEX to check the correct latest stable verison.

Before the fix:

$ devtool latest-version nmap
INFO: Current version: 7.95
INFO: Latest version: 7.95-1

After the fix:

$ devtool latest-version nmap
INFO: Current version: 7.95
INFO: Latest version: 7.95
---
 meta-oe/recipes-security/nmap/nmap_7.95.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-security/nmap/nmap_7.95.bb +3 -0
index f3775f24b0..c410751595 100644
@@ -14,6 +14,9 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \
            file://0001-fix-racing-between-build-ncat-and-build-lua.patch \
            "
 SRC_URI[sha256sum] = "e14ab530e47b5afd88f1c8a2bac7f89cd8fe6b478e22d255c5b9bddb7a1c5778" 
+
+UPSTREAM_CHECK_REGEX = "nmap-(?P<pver>\d+(\.\d+)+)\.tar"
+
 inherit autotools-brokensep pkgconfig python3native
 
 PACKAGECONFIG ?= "pcre ncat nping pcap"
Signature · 1 line
2.34.1