set_versions: Add a getlatest command to obtain the latest release branch name

Message ID 20220426103446.2776060-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series set_versions: Add a getlatest command to obtain the latest release branch name | expand

Commit Message

Richard Purdie April 26, 2022, 10:34 a.m. UTC
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(+)

Patch

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"