From 35708f8860adbf51549b2b2b07c176ba34eed812 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 27 Sep 2022 14:09:20 +0200 Subject: 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. (From OE-Core rev: afa57a02ecd12ad176302d9631f4181b26d94f5c) Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/classes-recipe/github-releases.bbclass | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 meta/classes-recipe/github-releases.bbclass (limited to 'meta') diff --git a/meta/classes-recipe/github-releases.bbclass b/meta/classes-recipe/github-releases.bbclass new file mode 100644 index 0000000000..ed83b83731 --- /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+)+)" -- cgit v1.2.3-54-g00ecf