summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-06-02 15:03:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-02 14:46:41 +0100
commit98bef02fe3e49db1b4411d02a30ee504556ce3d2 (patch)
treed203ba13d5796dcdda627b3cff58bf9e3be8ca27 /documentation
parente8f5501d5c3a7704159c551b42fd430106dea446 (diff)
downloadpoky-98bef02fe3e49db1b4411d02a30ee504556ce3d2.tar.gz
docs: set_versions.py: check for first latest release tag
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 <foss+yocto@0leil.net> (From yocto-docs rev: 7466c0c37ac193fc3d089fadd426d8a802cd0650) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rwxr-xr-xdocumentation/set_versions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index 9049c1a680..a7ceb3455a 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -86,7 +86,7 @@ docconfver = None
86 86
87# Test tags exist and inform the user to fetch if not 87# Test tags exist and inform the user to fetch if not
88try: 88try:
89 subprocess.run(["git", "show", "yocto-3.4.2"], capture_output=True, check=True) 89 subprocess.run(["git", "show", "yocto-%s" % release_series[activereleases[0]]], capture_output=True, check=True)
90except subprocess.CalledProcessError: 90except subprocess.CalledProcessError:
91 sys.exit("Please run 'git fetch --tags' before building the documentation") 91 sys.exit("Please run 'git fetch --tags' before building the documentation")
92 92