mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
meson: avoid ternary op in .format()
meson 0.49 can't parse that for some reason. I'm keeping this separate so it can be reverted easily when we bump required meson version.
This commit is contained in:
@@ -827,8 +827,13 @@ conf.set10('LOG_TRACE', get_option('log-trace'))
|
||||
default_user_path = get_option('user-path')
|
||||
if default_user_path != ''
|
||||
conf.set_quoted('DEFAULT_USER_PATH', default_user_path)
|
||||
default_user_path_display = default_user_path
|
||||
else
|
||||
# meson 0.49 fails when ?: is used in .format()
|
||||
default_user_path_display = '(same as system services)'
|
||||
endif
|
||||
|
||||
|
||||
#####################################################################
|
||||
|
||||
threads = dependency('threads')
|
||||
@@ -3124,8 +3129,7 @@ status = [
|
||||
'default net.naming-scheme setting: @0@'.format(default_net_naming_scheme),
|
||||
'default KillUserProcesses setting: @0@'.format(kill_user_processes),
|
||||
'default locale: @0@'.format(default_locale),
|
||||
'default user $PATH: @0@'.format(
|
||||
default_user_path != '' ? default_user_path : '(same as system services)'),
|
||||
'default user $PATH: @0@'.format(default_user_path_display),
|
||||
'systemd service watchdog: @0@'.format(watchdog_opt)]
|
||||
|
||||
alt_dns_servers = '\n '.join(dns_servers.split(' '))
|
||||
|
||||
Reference in New Issue
Block a user