[oe][meta-oe][PATCH 5/7] libyui-ncurses: 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-ncurses
...
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-ncurses_4.6.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb
index 43a79e26ff..d2d786c66f 100644
--- a/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb
+++ b/meta-oe/recipes-graphics/libyui/libyui-ncurses_4.6.2.bb
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://../COPYING.lgpl-3;md5=e6a600fd5e1d9cbde2d983680233ad0
     file://../COPYING.lgpl-2.1;md5=4fbd65380cdd255951079008b364516c \
 "
 
-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-NCurses-cast-wchar_t-before-streaming-to-narrow-ostr.patch \
           "
 
@@ -12,6 +12,8 @@ SRC_URI:append:class-target = " file://0001-Fix-the-error-of-can-t-find-header-f
 
 SRCREV = "e691b563262306a40a61bbf228839fa06e4f0516"
 
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
+
 S = "${UNPACKDIR}/${BP}/libyui-ncurses"
 
 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.