ndctl: add UPSTREAM_CHECK_GITTAGREGEX

Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version ndctl
INFO: Current version: v69
INFO: Latest version: 20150514
INFO: Latest version's commit: b6c7999a9f0115bac0d55f0d278674b03b0dd19e

After the patch:
$ devtool latest-version ndctl
INFO: Current version: v69
INFO: Latest version: v72
INFO: Latest version's commit: 25062cf34c70012f5d42ce1fef7e2dc129807c10

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yi Zhao
2021-12-31 14:13:50 +08:00
committed by Khem Raj
parent 6954fc516e
commit 86e98840da
+2
View File
@@ -13,6 +13,8 @@ inherit autotools-brokensep pkgconfig bash-completion systemd
SRCREV = "ea62d6d53bf6f806c4841e97a370201e18446860"
SRC_URI = "git://github.com/pmem/ndctl.git;branch=master;protocol=https"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>v\d+(\.\d+)*)"
DEPENDS = "kmod udev json-c keyutils"
S = "${WORKDIR}/git"