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
This commit is contained in:
parent
d75b46b71b
commit
cbdb489fc4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue