1
0
forked from rpms/sos

Fix AlmaLinux patch

This commit is contained in:
eabdullin 2022-10-10 11:41:00 +03:00
parent aacadd3248
commit 4f2790aaf4

View File

@ -1,10 +1,10 @@
diff -Naur sos-4.1/sos/policies/distros/redhat.py sos-4.1.alma/sos/policies/distros/redhat.py diff -aruN sos-4.3/sos/policies/distros/redhat.py sos-4.3.alma/sos/policies/distros/redhat.py
--- sos-4.1/sos/policies/distros/redhat.py 2021-02-25 21:46:49.000000000 +0300 --- sos-4.3/sos/policies/distros/redhat.py 2022-02-15 07:20:20.000000000 +0300
+++ sos-4.1.alma/sos/policies/distros/redhat.py 2021-10-09 22:26:17.000000000 +0300 +++ sos-4.3.alma/sos/policies/distros/redhat.py 2022-10-10 11:40:12.000000000 +0300
@@ -365,6 +365,15 @@ @@ -434,6 +434,14 @@
vendor = "CentOS"
vendor_urls = [('Community Website', 'https://www.centos.org/')] vendor_urls = [('Community Website', 'https://www.centos.org/')]
+class AlmaLinuxPolicy(RHELPolicy): +class AlmaLinuxPolicy(RHELPolicy):
+ distro = "AlmaLinux" + distro = "AlmaLinux"
+ vendor = "AlmaLinux OS Foundation" + vendor = "AlmaLinux OS Foundation"
@ -13,14 +13,13 @@ diff -Naur sos-4.1/sos/policies/distros/redhat.py sos-4.1.alma/sos/policies/dist
+ ('Commercial Support', 'https://tuxcare.com/linux-support-services/') + ('Commercial Support', 'https://tuxcare.com/linux-support-services/')
+ ] + ]
+ +
+
class RedHatAtomicPolicy(RHELPolicy): class RedHatAtomicPolicy(RHELPolicy):
distro = "Red Hat Atomic Host" distro = "Red Hat Atomic Host"
msg = _("""\ @@ -591,6 +599,14 @@
@@ -592,6 +601,15 @@ vendor = "CentOS"
vendor_urls = [('Community Website', 'https://www.centos.org/')] vendor_urls = [('Community Website', 'https://www.centos.org/')]
+class AlmaLinuxAtomicPolicy(RedHatAtomicPolicy): +class AlmaLinuxAtomicPolicy(RedHatAtomicPolicy):
+ distro = "AlmaLinux Atomic Host" + distro = "AlmaLinux Atomic Host"
+ vendor = "AlmaLinux OS Foundation" + vendor = "AlmaLinux OS Foundation"
@ -29,7 +28,6 @@ diff -Naur sos-4.1/sos/policies/distros/redhat.py sos-4.1.alma/sos/policies/dist
+ ('Commercial Support', 'https://tuxcare.com/linux-support-services/') + ('Commercial Support', 'https://tuxcare.com/linux-support-services/')
+ ] + ]
+ +
+
class FedoraPolicy(RedHatPolicy):
distro = "Fedora" class FedoraPolicy(RedHatPolicy):
"""