Add AlmaLinux support

Depends-On: I6cc3bedaa9753dc86d6560d32961b5a22cf3a36e
Change-Id: I037e1b0306315f7d12af0a4b6cba4226c24e6748
This commit is contained in:
Erik Berg 2022-04-08 13:23:52 +02:00 committed by Clark Boylan
parent 186f6e4035
commit 5d6a6c58b0
4 changed files with 27 additions and 2 deletions

View File

@ -353,7 +353,7 @@ class Depends(object):
"opensuseproject", "opensuse", "opensuse-leap",
"opensuse-tumbleweed", "sles", "suselinux",
"ol", "oracle",
"rocky"]:
"rocky", "almalinux"]:
# Distro aliases
if distro_id in ["redhatenterpriseserver",
"redhatenterpriseworkstation"]:
@ -404,7 +404,7 @@ class Depends(object):
elif "fedora" in distro_id:
atoms.add(PY2 if release_version < as_ver("23") else PY3)
elif any(w in distro_id for w in ["centos", "oracle", "rhel",
"rocky"]):
"rocky", "almalinux"]):
atoms.add(PY2 if release_version < as_ver("8") else PY3)
# Family aliases

View File

@ -0,0 +1,15 @@
NAME="AlmaLinux"
VERSION="8.5 (Arctic Sphynx)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.5 (Arctic Sphynx)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.5"

View File

@ -257,6 +257,12 @@ class TestDepends(TestCase):
self.assertThat(
depends.platform_profiles(), Contains("platform:rpm"))
def test_detects_almalinux(self):
with DistroFixture("almalinux"):
depends = Depends("")
self.assertThat(
depends.platform_profiles(), Contains("platform:rpm"))
def test_detects_release(self):
with DistroFixture("Ubuntu"):
depends = Depends("")

View File

@ -0,0 +1,4 @@
---
features:
- |
Add support for AlmaLinux to Bindep.