[gnomemm-website] meson.build: Add "check: false" to run_command()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomemm-website] meson.build: Add "check: false" to run_command()
- Date: Fri, 4 Feb 2022 16:09:49 +0000 (UTC)
commit 140cdc80e1d7cbc1baeed70f1cc26abfe070dc32
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Feb 4 17:05:25 2022 +0100
meson.build: Add "check: false" to run_command()
Don't depend on the default value. It will be changed in future
Meson releases.
docs/meson.build | 2 ++
meson.build | 1 +
tools/website-custom-cmd.py | 2 ++
3 files changed, 5 insertions(+)
---
diff --git a/docs/meson.build b/docs/meson.build
index ae6899c..efcc3cf 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -23,6 +23,7 @@ if xmllint.found()
relax_ng_schema_file,
meson.current_source_dir() / 'can_use_xmllint.xml',
meson.current_build_dir() / 'can_use_xmllint.stamp',
+ check: false,
).returncode() == 0
if not can_parse_and_validate
# The DocBook V5.0 package is called docbook5-xml in Ubuntu,
@@ -63,6 +64,7 @@ if can_build_translations and build_translations_by_default
language_obj = run_command(
python3, website_custom_cmd, 'get_languages',
meson.current_source_dir(),
+ check: false,
)
if language_obj.stderr() != ''
warning(language_obj.stderr())
diff --git a/meson.build b/meson.build
index 3257624..2afdc92 100644
--- a/meson.build
+++ b/meson.build
@@ -34,6 +34,7 @@ copy_obj = run_command(
'.htaccess',
'images',
'style',
+ check: false,
)
if copy_obj.stdout() != ''
warning(copy_obj.stdout())
diff --git a/tools/website-custom-cmd.py b/tools/website-custom-cmd.py
index 531c4db..65afb24 100755
--- a/tools/website-custom-cmd.py
+++ b/tools/website-custom-cmd.py
@@ -58,6 +58,8 @@ def get_languages():
print(line, end=' ')
except (FileNotFoundError, PermissionError):
print('Could not find file LINGUAS in', input_dir, file=sys.stderr)
+ return 1
+ return 0
# Called from custom_target()
def xmllint():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]