Add AlmaLinux support
Depends-On: I6cc3bedaa9753dc86d6560d32961b5a22cf3a36e Change-Id: I037e1b0306315f7d12af0a4b6cba4226c24e6748
This commit is contained in:
parent
186f6e4035
commit
5d6a6c58b0
@ -353,7 +353,7 @@ class Depends(object):
|
|||||||
"opensuseproject", "opensuse", "opensuse-leap",
|
"opensuseproject", "opensuse", "opensuse-leap",
|
||||||
"opensuse-tumbleweed", "sles", "suselinux",
|
"opensuse-tumbleweed", "sles", "suselinux",
|
||||||
"ol", "oracle",
|
"ol", "oracle",
|
||||||
"rocky"]:
|
"rocky", "almalinux"]:
|
||||||
# Distro aliases
|
# Distro aliases
|
||||||
if distro_id in ["redhatenterpriseserver",
|
if distro_id in ["redhatenterpriseserver",
|
||||||
"redhatenterpriseworkstation"]:
|
"redhatenterpriseworkstation"]:
|
||||||
@ -404,7 +404,7 @@ class Depends(object):
|
|||||||
elif "fedora" in distro_id:
|
elif "fedora" in distro_id:
|
||||||
atoms.add(PY2 if release_version < as_ver("23") else PY3)
|
atoms.add(PY2 if release_version < as_ver("23") else PY3)
|
||||||
elif any(w in distro_id for w in ["centos", "oracle", "rhel",
|
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)
|
atoms.add(PY2 if release_version < as_ver("8") else PY3)
|
||||||
|
|
||||||
# Family aliases
|
# Family aliases
|
||||||
|
15
bindep/tests/fixtures/almalinux/etc/os-release
vendored
Normal file
15
bindep/tests/fixtures/almalinux/etc/os-release
vendored
Normal 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"
|
@ -257,6 +257,12 @@ class TestDepends(TestCase):
|
|||||||
self.assertThat(
|
self.assertThat(
|
||||||
depends.platform_profiles(), Contains("platform:rpm"))
|
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):
|
def test_detects_release(self):
|
||||||
with DistroFixture("Ubuntu"):
|
with DistroFixture("Ubuntu"):
|
||||||
depends = Depends("")
|
depends = Depends("")
|
||||||
|
4
releasenotes/notes/almalinux-154befa793559c61.yaml
Normal file
4
releasenotes/notes/almalinux-154befa793559c61.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add support for AlmaLinux to Bindep.
|
Loading…
Reference in New Issue
Block a user