All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] githib-releases: add a class that consolidates version checks
@ 2022-09-27 12:09 Alexander Kanavin
  2022-09-27 12:09 ` [PATCH 2/3] meta: fix version checks in all github recipes using the github-releases class Alexander Kanavin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexander Kanavin @ 2022-09-27 12:09 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

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 <alex@linutronix.de>
---
 meta/classes-recipe/github-releases.bbclass | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 meta/classes-recipe/github-releases.bbclass

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<pver>\d+(\.\d+)+)"
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-27 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-27 12:09 [PATCH 1/3] githib-releases: add a class that consolidates version checks Alexander Kanavin
2022-09-27 12:09 ` [PATCH 2/3] meta: fix version checks in all github recipes using the github-releases class Alexander Kanavin
2022-09-27 12:09 ` [PATCH 3/3] virglrenderer: use https for fetching from gitlab Alexander Kanavin
2022-09-27 14:17 ` [OE-core] [PATCH 1/3] githib-releases: add a class that consolidates version checks Peter Kjellerstedt
2022-09-27 16:47   ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.