2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 04:07:51 +00:00

Add recognition of Alma 9 and (presumably) rocky 9

This commit is contained in:
Jarrod Johnson 2022-05-04 14:16:51 -04:00
parent 548111f4d1
commit d3129847b4

View File

@ -250,6 +250,11 @@ def check_rocky(isoinfo):
arch = entry.split('.')[-2]
cat = 'el8'
break
if 'rocky-release-9' in entry:
ver = entry.split('-')[2]
arch = entry.split('.')[-2]
cat = 'el9'
break
else:
return None
if arch == 'noarch' and '.discinfo' in isoinfo[1]:
@ -270,6 +275,11 @@ def check_alma(isoinfo):
arch = entry.split('.')[-2]
cat = 'el8'
break
elif 'almalinux-release-9' in entry:
ver = entry.split('-')[2]
arch = entry.split('.')[-2]
cat = 'el9'
break
else:
return None
if arch == 'noarch' and '.discinfo' in isoinfo[1]: