2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +00:00

Detect architecture for CentOS stream

CentOS stream changed the release rpm to be noarch.
This commit is contained in:
Jarrod Johnson 2020-12-14 10:23:05 -05:00
parent caf9115439
commit 48c868e935

View File

@ -252,6 +252,11 @@ def check_centos(isoinfo):
break
else:
return None
if arch == 'noarch' and '.discinfo' in isoinfo[1]:
prodinfo = isoinfo[1]['.discinfo']
arch = prodinfo.split(b'\n')[2]
if not isinstance(arch, str):
arch = arch.decode('utf-8')
return {'name': 'centos{2}-{0}-{1}'.format(ver, arch, isstream), 'method': EXTRACT, 'category': cat}
def check_esxi(isoinfo):