]> code.ossystems Code Review - openembedded-core.git/commitdiff
vim: fix upstream version check
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 13 Dec 2019 11:42:24 +0000 (12:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 28 Dec 2019 23:25:35 +0000 (23:25 +0000)
Only new x.y versions will be reported, as upstream creates a new
x.y.z tag for every commit.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/vim/vim.inc

index 0a31e68cb7ccd86034365107a317beaf2060f16d..5a1bea69854e7da14c3443ab4de0e05b54844790 100644 (file)
@@ -14,6 +14,9 @@ SRC_URI = "git://github.com/vim/vim.git \
 "
 SRCREV = "202d982b36d87cf91d992bd7e30d3223bdc72cd9"
 
+# Do not consider .z in x.y.z, as that is updated with every commit
+UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0"
+
 S = "${WORKDIR}/git"
 
 VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}"