meson: fix a meson warning
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 28 Mar 2022 00:16:51 +0000 (10:16 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 28 Mar 2022 21:41:58 +0000 (21:41 +0000)
run_command() wants a check kwarg now:

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/user/meson.build

index a5e7737d477fdc951665a3605dcbba8a2151ef84..8f690e858d0895c9499394d26ed94d696ac3d4d1 100644 (file)
@@ -194,7 +194,8 @@ if yq.found()
        foreach distro : distributions
                yq_filter = '.distributions[] | select(.name == "@0@") | .packages | join(" ")'.format(distro)
                deps = run_command(yq, '-r', yq_filter,
-                                  meson.source_root() / '.gitlab-ci' / 'config.yml').stdout()
+                                  meson.source_root() / '.gitlab-ci' / 'config.yml',
+                                  check: true).stdout()
                dependencies_config.set('@0@_PACKAGES'.format(distro.to_upper()), deps)
 endforeach
 endif