mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: Require that both qemu_user and qemu_group are provided
Or that neither is. The current implementation, where if only one of the two is provided the other one will be based on OS-specific defaults is more likely to cause confusion than it is to be helpful. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
46b5fbd1fe
commit
00c1a47914
@ -1683,10 +1683,13 @@ if not get_option('driver_qemu').disabled()
|
||||
endif
|
||||
endif
|
||||
qemu_user = get_option('qemu_user')
|
||||
qemu_group = get_option('qemu_group')
|
||||
if (qemu_user == '' and qemu_group != '') or (qemu_user != '' and qemu_group == '')
|
||||
error('Please specify both qemu_user and qemu_group or neither of them')
|
||||
endif
|
||||
if qemu_user == ''
|
||||
qemu_user = default_qemu_user
|
||||
endif
|
||||
qemu_group = get_option('qemu_group')
|
||||
if qemu_group == ''
|
||||
qemu_group = default_qemu_group
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user