Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion easybuild/tools/systemtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ def check_os_dependency(dep):
found = False
cmd = None
os_to_pkg_cmd_map = {
'centos': RPM,
'debian': DPKG,
'redhat': RPM,
'ubuntu': DPKG,
Expand All @@ -670,6 +669,11 @@ def check_os_dependency(dep):
RPM: '-q',
}
os_name = get_os_name()

rh_based_os = os_name in ['centos', 'fedora', 'redhat', 'RHEL', 'SL']
if rh_based_os:
os_name = 'redhat'

if os_name in os_to_pkg_cmd_map:
pkg_cmds = [os_to_pkg_cmd_map[os_name]]
else:
Expand Down