]> git.ipfire.org Git - thirdparty/libvirt.git/commit
meson: Check for os-release's ID_LIKE in addition to ID
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 Jan 2022 14:09:52 +0000 (15:09 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 17 Mar 2022 13:46:14 +0000 (14:46 +0100)
commitd36ba5fa710be40fba33d7f1738cee45a4a7d2b3
tree51b0644497314b6dbc17515622d1e9c4bbe66262
parentab10207c3bd42e019dde903f40ed7060dcd5e0f1
meson: Check for os-release's ID_LIKE in addition to ID

This makes it possible to reduce the number of cases we have to
consider, because 'sles' declares itself to be like 'suse' and
both 'rhel' and 'centos' declare themselves to be like 'fedora'.

We have to move the check for Ubuntu before the one for Debian,
however, because 'ubuntu' declares itself to be like 'debian'
and it would end up with the wrong defaults otherwise.

Suggested-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
meson.build