diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-09-27 14:09:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-28 08:01:10 +0100 |
commit | 35708f8860adbf51549b2b2b07c176ba34eed812 (patch) | |
tree | dff20a4804216f65c4394fff31a5c34a443449ec | |
parent | 02500490068168f232bc9264ae95f098a5f48694 (diff) | |
download | poky-35708f8860adbf51549b2b2b07c176ba34eed812.tar.gz |
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 <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/github-releases.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ | |||
1 | GITHUB_BASE_URI ?= "https://github.com/${BPN}/${BPN}/releases/" | ||
2 | UPSTREAM_CHECK_URI ?= "${GITHUB_BASE_URI}" | ||
3 | UPSTREAM_CHECK_REGEX ?= "releases/tag/v?(?P<pver>\d+(\.\d+)+)" | ||