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:
parent
caf9115439
commit
48c868e935
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user