[PATCH 2/2] doc/setversions.py: use older lts series to check tag existence
Antonin Godard <[email protected]>
| Newsgroups | org.openembedded.lists.bitbake-devel,org.yoctoproject.lists.docs |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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