[oe][meta-networking][PATCH 23/27] open62541: add UPSTREAM_CHECK variables and include tag in the SRC_URI

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

Fixes:
$ devtool latest-version open62541
...
INFO: Current version: 1.5.6
INFO: Latest version: 256

Signed-off-by: Ankur Tyagi <[email protected]>
---
 meta-networking/recipes-protocols/opcua/open62541_1.5.6.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-protocols/opcua/open62541_1.5.6.bb b/meta-networking/recipes-protocols/opcua/open62541_1.5.6.bb
index adb500c954..8126132773 100644
--- a/meta-networking/recipes-protocols/opcua/open62541_1.5.6.bb
+++ b/meta-networking/recipes-protocols/opcua/open62541_1.5.6.bb
@@ -14,12 +14,13 @@ SRCREV_ua-nodeset = "257db9ad98ee7ba4b67d3500b54bfc9d744a36af"
 SRCREV_mqtt-c = "0f4c34c8cc00b16cfee094745d68b8cdbaecd8e0"
 
 SRC_URI = " \
-    git://github.com/open62541/open62541.git;name=opcua;branch=1.5;protocol=https \
+    git://github.com/open62541/open62541.git;name=opcua;branch=1.5;protocol=https;tag=v${PV} \
     git://github.com/troglobit/mdnsd.git;name=mdnsd;protocol=https;branch=master;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/deps/mdnsd \
     git://github.com/OPCFoundation/UA-Nodeset;name=ua-nodeset;protocol=https;branch=latest;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/deps/ua-nodeset \
     git://github.com/LiamBindle/MQTT-C.git;name=mqtt-c;protocol=https;branch=master;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/deps/mqtt-c \
 "
 
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 
 inherit cmake python3native
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.