Skip to contentSkip to conversation

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

PATCH New Richard Purdie 1 participant 1 message Apr 26, 2022

lore
Share & tools
lore
#0 lore raw

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

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

---
 documentation/set_versions.py | 5 +++++
 1 file changed, 5 insertions(+)
documentation/set_versions.py +5 -0
index 33d9da55e..cd02cc739 100755
@@ -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"
Signature · 1 line
2.32.0