docs: check for first latest release tag

Message ID
State New
Headers show
Series docs: check for first latest release tag | expand

Commit Message

Quentin Schulz June 2, 2022, 1:03 p.m. UTC
From: Quentin Schulz <>

Let's not maintain manually which tag should be locally available before
asking the user to run git fetch --tags. Instead, let's check for the
latest release first tag (e.g. for Kirkstone, 4.0 even though 4.0.1 is
already out).

Cc: Quentin Schulz <>
Signed-off-by: Quentin Schulz <>
 documentation/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/documentation/ b/documentation/
index 9049c1a68..a7ceb3455 100755
--- a/documentation/
+++ b/documentation/
@@ -86,7 +86,7 @@  docconfver = None
 # Test tags exist and inform the user to fetch if not
-["git", "show", "yocto-3.4.2"], capture_output=True, check=True)
+["git", "show", "yocto-%s" % release_series[activereleases[0]]], capture_output=True, check=True)
 except subprocess.CalledProcessError:
     sys.exit("Please run 'git fetch --tags' before building the documentation")