[oe][meta-oe][PATCH 4/7] libyui: add UPSTREAM_CHECK_GITTAGREGEX

[email protected]
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <[email protected]>
From: Ankur Tyagi <[email protected]>

Also add tag in the SRC_URI

Fixes:
$ devtool latest-version libyui
...
INFO: Current version: 4.6.2
INFO: Latest version: 43018
INFO: Latest version's commit: 7009e514ecafb1e25e0cc5a4ec1e731ff8af30ee

Signed-off-by: Ankur Tyagi <[email protected]>
---
 meta-oe/recipes-graphics/libyui/libyui_4.6.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-graphics/libyui/libyui_4.6.2.bb b/meta-oe/recipes-graphics/libyui/libyui_4.6.2.bb
index d86aa4da91..19b53a3e00 100644
--- a/meta-oe/recipes-graphics/libyui/libyui_4.6.2.bb
+++ b/meta-oe/recipes-graphics/libyui/libyui_4.6.2.bb
@@ -5,13 +5,15 @@ LIC_FILES_CHKSUM = "file://../COPYING.gpl-3;md5=d32239bcb673463ab874e80d47fae504
                     file://../COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
                    "
 
-SRC_URI = "git://github.com/libyui/libyui.git;branch=master;protocol=https \
+SRC_URI = "git://github.com/libyui/libyui.git;branch=master;protocol=https;tag=${PV} \
            file://0001-Fix-build-with-clang.patch \
            file://0001-Use-relative-install-paths-for-CMake.patch \
            "
 
 SRCREV = "e691b563262306a40a61bbf228839fa06e4f0516"
 
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
+
 S = "${UNPACKDIR}/${BP}/libyui"
 
 inherit cmake gettext pkgconfig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.