mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
e8f5501d5c
commit
98bef02fe3
|
@ -86,7 +86,7 @@ docconfver = None
|
|||
|
||||
# Test tags exist and inform the user to fetch if not
|
||||
try:
|
||||
subprocess.run(["git", "show", "yocto-3.4.2"], capture_output=True, check=True)
|
||||
subprocess.run(["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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user