All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] set_versions: Add a getlatest command to obtain the latest release branch name
@ 2022-04-26 10:34 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2022-04-26 10:34 UTC (permalink / raw)
  To: docs

This will allow the autobuilder-helper run-docs-build script to obtain
the latest release name.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 documentation/set_versions.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index 33d9da55e..cd02cc739 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -27,6 +27,11 @@ activereleases = ["kirkstone", "honister", "hardknott", "dunfell"]
 devbranch = "langdale"
 ltsseries = ["kirkstone", "dunfell"]
 
+# used by run-docs-builds to get the default page
+if ourversion == "getlatest":
+    print(activereleases[0])
+    sys.exit(0)
+
 release_series = collections.OrderedDict()
 release_series["langdale"] = "4.1"
 release_series["kirkstone"] = "4.0"
-- 
2.32.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-26 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 10:34 [PATCH] set_versions: Add a getlatest command to obtain the latest release branch name Richard Purdie

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.