[atkmm/atkmm-2-28] meson.build: Specify 'check' option in run_command()



commit c1a072108d2732e9b506545f318e7ccb1e312bb3
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Sat Feb 5 12:22:31 2022 +0100

    meson.build: Specify 'check' option in run_command()
    
    The default value will be changed in future Meson releases.

 atk/atkmm/meson.build | 1 +
 meson.build           | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/atk/atkmm/meson.build b/atk/atkmm/meson.build
index 44a35ab..791d26e 100644
--- a/atk/atkmm/meson.build
+++ b/atk/atkmm/meson.build
@@ -169,6 +169,7 @@ else # not maintainer_mode
     meson.current_build_dir(),
     src_untracked_atkmm,
     hg_ccg_basenames,
+    check: true,
   )
 
   built_cc_files = [ rel_untracked_atkmm / 'wrap_init.cc' ]
diff --git a/meson.build b/meson.build
index 0767514..c025c09 100644
--- a/meson.build
+++ b/meson.build
@@ -59,7 +59,7 @@ import os
 import sys
 sys.exit(os.path.isdir("@0@") or os.path.isfile("@0@"))
 '''.format(project_source_root / '.git')
-is_git_build = run_command(python3, '-c', cmd_py).returncode() != 0
+is_git_build = run_command(python3, '-c', cmd_py, check: false).returncode() != 0
 
 # Are we testing a dist tarball while it's being built?
 # There ought to be a better way. https://github.com/mesonbuild/meson/issues/6866
@@ -153,14 +153,16 @@ check_dllexport_usage_py = script_dir / 'check-dllexport-usage.py'
 if maintainer_mode
   # Copy files to untracked/build_scripts and untracked/doc.
   run_command(mm_common_get, '--force', script_dir,
-    project_source_root / 'untracked' / 'doc')
+    project_source_root / 'untracked' / 'doc',
+    check: true,
+  )
 else
   cmd_py = '''
 import os
 import sys
 sys.exit(os.path.isfile("@0@"))
 '''.format(generate_binding_py)
-  file_exists = run_command(python3, '-c', cmd_py).returncode() != 0
+  file_exists = run_command(python3, '-c', cmd_py, check: false).returncode() != 0
   if not file_exists
     error('Missing files in untracked/. You must enable maintainer-mode.')
   endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]