From 4abe4b2d2a5d1fcf54fd532899067e4c3757f46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 18 Jul 2023 13:34:14 +0200 Subject: [PATCH] meson: check gitlint version We use 'regex-style-search' which requires at least 0.18. F38 still ships with 0.15 it seems. https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5049#note_2004507 Part-of: --- meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 3affa22f41..0e1abe55f9 100644 --- a/meson.build +++ b/meson.build @@ -33,12 +33,12 @@ endif # Install gst-indent pre-commit hook run_command(python3, '-c', 'import shutil; shutil.copy("scripts/git-hooks/multi-pre-commit.hook", ".git/hooks/pre-commit")', check: false) - -gitlint = find_program('gitlint', required: false) +gitlint_req = '>= 0.18' +gitlint = find_program('gitlint', version: gitlint_req, required: false) if gitlint.found() run_command(gitlint, 'install-hook', check: false) else - message('gitlint not found, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook') + message('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook') endif # On macOS, you have to run "Install Certificates.command" otherwise Python