mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: Move definition of os_release
We're about to introduce another user of the value in a different scope. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
e54a419693
commit
6f42d9610c
@ -24,6 +24,11 @@ if git and not get_option('no_git')
|
||||
endif
|
||||
|
||||
|
||||
# detect operating system
|
||||
|
||||
os_release = run_command('grep', '-E', '^ID(_LIKE)*=', '/etc/os-release', check: false).stdout()
|
||||
|
||||
|
||||
# prepare build configuration data
|
||||
|
||||
conf = configuration_data()
|
||||
@ -1618,7 +1623,6 @@ if not get_option('driver_qemu').disabled()
|
||||
qemu_user = 'root'
|
||||
qemu_group = 'wheel'
|
||||
else
|
||||
os_release = run_command('grep', '-E', '^ID(_LIKE)*=', '/etc/os-release', check: false).stdout()
|
||||
# RHEL and CentOS both have ID_LIKE=fedora, SLES has ID_LIKE=suse
|
||||
if (os_release.contains('fedora') or
|
||||
os_release.contains('gentoo') or
|
||||
|
Loading…
Reference in New Issue
Block a user