diff mbox series

[2/2] doc/setversions.py: use older lts series to check tag existence

Message ID 20260514-set-versions-fixes-v1-2-70b1fcdda8ee@bootlin.com
State New
Headers show
Series doc: setversions.py fixes | expand

Commit Message

Antonin Godard May 14, 2026, 10:53 a.m. UTC
Using the most recent LTS series to check if a tag exist may fail if the
LTS was recently created. Use the older one instead.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 doc/setversions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/doc/setversions.py b/doc/setversions.py
index 8e934667f93..2df384e9117 100755
--- a/doc/setversions.py
+++ b/doc/setversions.py
@@ -109,7 +109,7 @@  def main():
 def get_current_version():
     # Test tags exist and inform the user to fetch if not
     try:
-        subprocess.run(["git", "show", f"{LTSSERIES[0]}.0"],
+        subprocess.run(["git", "show", f"{LTSSERIES[-1]}.0"],
                        stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
     except subprocess.CalledProcessError:
         sys.exit("Please run 'git fetch --tags' before building the documentation")