commit 649cdc14ba1f352c14179bd177f6156bd322cbed
parent a23440bf7cf5102f18092bb4239c198e217bf928
Author: Dundar Goc <gocdundar@gmail.com>
Date: Mon, 2 May 2022 10:58:40 +0200
ci(gen_vimdoc): handle edge case when checking doxygen version
When checking the version of the doxygen installed from conda the output
has the following format:
1.9.2 (ee54ebd4f0ad83d9c44f19a459146de64d0ffba2*)
This would cause an error in the "Missing API docs" CI job. This fix
will correctly parse the doxygen version for both stable releases
("1.9.2") as well as the version with the git commit hash attached.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/gen_vimdoc.py b/scripts/gen_vimdoc.py
@@ -60,7 +60,7 @@ if sys.version_info < MIN_PYTHON_VERSION:
sys.exit(1)
doxygen_version = tuple([int(i) for i in subprocess.check_output(["doxygen", "-v"],
- universal_newlines=True).split('.')])
+ universal_newlines=True).split()[0].split('.')])
if doxygen_version < MIN_DOXYGEN_VERSION:
print("requires Doxygen {}.{}.{}+".format(*MIN_DOXYGEN_VERSION))