Skip to content

Commit

Permalink
Detect almalinux and rockylinux as slc
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Feb 15, 2023
1 parent 2e632a3 commit fff1d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alibuild_helpers/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def doDetectArch(hasOsRelease, osReleaseLines, platformTuple, platformSystem, pl
distribution = distribution.lower()
# If platform.dist does not return something sensible,
# let's try with /etc/os-release
if distribution not in ["ubuntu", "redhat", "centos"] and hasOsRelease:
if distribution not in ["ubuntu", "redhat", "centos", "almalinux", "rockylinux"] and hasOsRelease:
for x in osReleaseLines:
key, is_prop, val = x.partition("=")
if not is_prop:
Expand All @@ -161,7 +161,7 @@ def doDetectArch(hasOsRelease, osReleaseLines, platformTuple, platformSystem, pl
if version in debian_ubuntu:
distribution = "ubuntu"
version = debian_ubuntu[version]
elif distribution in ["redhat", "centos"]:
elif distribution in ["redhat", "centos", "almalinux", "rockylinux"]:
distribution = "slc"

processor = platformProcessor
Expand Down

0 comments on commit fff1d3a

Please sign in to comment.