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.
This commit is contained in:
Dundar Goc 2022-05-02 10:58:40 +02:00
parent a23440bf7c
commit 649cdc14ba

View File

@ -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))