From: Alexander Kanavin Date: Tue, 27 Sep 2022 12:09:20 +0000 (+0200) Subject: github-releases: add a class that consolidates version checks X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2865 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afa57a02ecd12ad176302d9631f4181b26d94f5c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git github-releases: add a class that consolidates version checks github has recently changed how the releases page is structured: the tarballs are no longer listed directly, but are included via separate 'fragment' URIs. For now, we can change the check to match against the release tags. This also establishes a common base URI to use for both fetching and checking the latest version. Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/github-releases.bbclass b/meta/classes-recipe/github-releases.bbclass new file mode 100644 index 00000000000..ed83b837310 --- /dev/null +++ b/meta/classes-recipe/github-releases.bbclass @@ -0,0 +1,3 @@ +GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/" +UPSTREAM_CHECK_URI ?= "${GITHUB_BASE_URI}" +UPSTREAM_CHECK_REGEX ?= "releases/tag/v?(?P\d+(\.\d+)+)"