]> code.ossystems Code Review - openembedded-core.git/commit
cpan-base: set default UPSTREAM_CHECK_REGEX
authorKonrad Weihmann <kweihmann@outlook.com>
Fri, 9 Apr 2021 16:51:23 +0000 (18:51 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Apr 2021 10:29:05 +0000 (11:29 +0100)
commit3df2cf383b58a3100bd78ebb0369047221121512
tree3da49af8804a94eab807bdc349c3e79835b07ea6
parent14bfe5f15f78c1bc049868633fd6fa19feb5a70c
cpan-base: set default UPSTREAM_CHECK_REGEX

as cpan release versions are almost always follow an a.b version scheme,
it's better to filter out beta releases such as a.b.c.
Use the first resource fetched from https://cpan.metacpan.org as base
for calculating the needed regex.
In case nothing can be calculated fall back to nothing.
Add this to cpan-base to enable it for new & old style cpan integration.

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cpan-base.bbclass