diff options
author | Thomas Haller <thaller@redhat.com> | 2019-12-13 13:41:42 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-12-13 13:48:25 +0100 |
commit | 0e3400bef730b2c52d48a1d1d4de58e9bcf2dcaa (patch) | |
tree | aa5c2b5075a043b0f13b90909dd324b059ccb6ea /meson.build | |
parent | f5b0713651f8603f93be82a47b22ed578762f5eb (diff) | |
download | NetworkManager-0e3400bef730b2c52d48a1d1d4de58e9bcf2dcaa.tar.gz |
meson/build: avoid using ternary as it breaks older meson
See mesonbuild issue 5003.
Oddly, this isn't inside a method call, while we use ternaries
inside a method calls otherwise. Anyway, workaround this and
avoid the crash.
Fixes: c21c6bc0be2a ('build/meson: allow configuring default for main.auth-polkit setting')
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 022a90fec1..faca209e1f 100644 --- a/meson.build +++ b/meson.build @@ -940,7 +940,13 @@ output += ' session tracking: ' + ','.join(session_trackers) + '\n' output += ' suspend/resume: ' + suspend_resume + '\n' output += ' policykit: ' + enable_polkit.to_string() + ' (default: ' + config_auth_polkit_default + ')' if enable_polkit - output += ' (' + (enable_modify_system ? 'permissive' : 'restrictive') + ' modify.system)' + output += ' (' + if enable_modify_system + output += 'permissive' + else + output += 'restrictive' + endif + output += ' modify.system)' endif output += '\n' output += ' polkit agent: ' + enable_polkit_agent.to_string() + '\n' |