From f20be1f81f727912f60bf786a8b55ded79a1dddc Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Fri, 31 Dec 2021 14:13:50 +0800 Subject: [PATCH] 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 Signed-off-by: Khem Raj --- meta-oe/recipes-core/ndctl/ndctl_v69.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/recipes-core/ndctl/ndctl_v69.bb b/meta-oe/recipes-core/ndctl/ndctl_v69.bb index 0490b8fb6ce..b848ca63c5e 100644 --- a/meta-oe/recipes-core/ndctl/ndctl_v69.bb +++ b/meta-oe/recipes-core/ndctl/ndctl_v69.bb @@ -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 = "(?Pv\d+(\.\d+)*)" + DEPENDS = "kmod udev json-c keyutils" S = "${WORKDIR}/git"