[gnome-control-center/wip/hadess/meson-run-command] build: Check run_command() return value




commit cbdb489fc4c11d8b3471cb57c2d036b5d53629b8
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 24 10:14:05 2022 +0100

    build: Check run_command() return value
    
    As recommended by newer versions of meson:
    WARNING: You should add the boolean check kwarg to the run_command call.
             It currently defaults to false,
             but it will default to true in future releases of meson.
             See also: https://github.com/mesonbuild/meson/issues/9300

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index b8b450046..d963651f9 100644
--- a/meson.build
+++ b/meson.build
@@ -146,7 +146,7 @@ polkit_gobject_dep = dependency('polkit-gobject-1', version: '>= 0.103')
 # https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/491
 polkit_files = [ 'gettext/its/polkit.its', 'gettext/its/polkit.loc' ]
 foreach polkit_file: polkit_files
-  r = run_command('build-aux/meson/find_xdg_file.py', polkit_file)
+  r = run_command('build-aux/meson/find_xdg_file.py', polkit_file, check: true)
   assert(r.returncode() == 0, 'ITS support missing from polkit, please upgrade or contact your distribution')
 endforeach
 


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