[PATCH 1/2] ifcfg: test for sysconfig network path also on meson



In a recent commit 1402fa7487b29fc1ea39a6bf7659fee7f30bb0e0 a new
way for testing Red Hat compatible distributions had been added.

This new testing approach has also been added to meson.
---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index cc704a47a..16195467a 100644
--- a/meson.build
+++ b/meson.build
@@ -207,8 +207,7 @@ glib_dep = declare_dependency(
 
 check_distro = join_paths(meson.source_root(), 'check-distro.py')
 
-redhat_releases =  ['/etc/redhat-release', '/etc/fedora-release', '/etc/mandriva-release']
-if run_command(check_distro, redhat_releases).returncode() == 0
+if run_command(check_distro, '/etc/sysconfig/network-scripts').returncode() == 0
   distro = 'redhat'
 elif run_command(check_distro, '/etc/SuSE-release').returncode() == 0
   distro = 'suse'
-- 
2.15.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]