Add OracleLinux support
Story: 2001492 Change-Id: I72da98d95a6fecff682236887fd06931066063fe
This commit is contained in:
parent
8c489f141d
commit
32e890e844
|
@ -346,7 +346,8 @@ class Depends(object):
|
|||
"redhatenterpriseworkstation",
|
||||
"fedora",
|
||||
"opensuseproject", "opensuse", "opensuse-leap",
|
||||
"opensuse-tumbleweed", "sles", "suselinux"]:
|
||||
"opensuse-tumbleweed", "sles", "suselinux",
|
||||
"ol", "oracle"]:
|
||||
# Distro aliases
|
||||
if distro_id in ["redhatenterpriseserver",
|
||||
"redhatenterpriseworkstation"]:
|
||||
|
@ -396,7 +397,7 @@ class Depends(object):
|
|||
atoms.update(self.releasebits("sles", release))
|
||||
elif "fedora" in distro_id:
|
||||
atoms.add(PY2 if release_version < as_ver("23") else PY3)
|
||||
elif "centos" in distro_id or "rhel" in distro_id:
|
||||
elif any(w in distro_id for w in ["centos", "oracle", "rhel"]):
|
||||
atoms.add(PY2 if release_version < as_ver("8") else PY3)
|
||||
|
||||
# Family aliases
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
NAME="Oracle Linux Server"
|
||||
VERSION="7.5"
|
||||
ID="ol"
|
||||
VERSION_ID="7.5"
|
||||
PRETTY_NAME="Oracle Linux Server 7.5"
|
||||
ANSI_COLOR="0;31"
|
||||
CPE_NAME="cpe:/o:oracle:linux:7:5:server"
|
||||
HOME_URL="https://linux.oracle.com/"
|
||||
BUG_REPORT_URL="https://bugzilla.oracle.com/"
|
||||
|
||||
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
|
||||
ORACLE_BUGZILLA_PRODUCT_VERSION=7.5
|
||||
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
|
||||
ORACLE_SUPPORT_PRODUCT_VERSION=7.5
|
|
@ -233,6 +233,12 @@ class TestDepends(TestCase):
|
|||
self.assertThat(
|
||||
depends.platform_profiles(), Contains("platform:alpine"))
|
||||
|
||||
def test_detects_oraclelinux(self):
|
||||
with DistroFixture("oraclelinux"):
|
||||
depends = Depends("")
|
||||
self.assertThat(
|
||||
depends.platform_profiles(), Contains("platform:rpm"))
|
||||
|
||||
def test_detects_release(self):
|
||||
with DistroFixture("Ubuntu"):
|
||||
depends = Depends("")
|
||||
|
|
Loading…
Reference in New Issue