All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antonin Godard <antonin.godard@bootlin.com>
To: bitbake-devel@lists.openembedded.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 docs@lists.yoctoproject.org,
	Antonin Godard <antonin.godard@bootlin.com>
Subject: [PATCH 2/2] doc/setversions.py: use older lts series to check tag existence
Date: Thu, 14 May 2026 12:53:15 +0200	[thread overview]
Message-ID: <20260514-set-versions-fixes-v1-2-70b1fcdda8ee@bootlin.com> (raw)
In-Reply-To: <20260514-set-versions-fixes-v1-0-70b1fcdda8ee@bootlin.com>

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 --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")

-- 
2.54.0



      parent reply	other threads:[~2026-05-14 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14 10:53 [PATCH 0/2] doc: setversions.py fixes Antonin Godard
2026-05-14 10:53 ` [PATCH 1/2] doc/setversions.py: move arg parsing to main function Antonin Godard
2026-05-14 10:53 ` Antonin Godard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260514-set-versions-fixes-v1-2-70b1fcdda8ee@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=docs@lists.yoctoproject.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.