2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Make ubuntu case insensitive on import

Ubuntu changes their minds about case of some files.
This commit is contained in:
Jarrod Johnson 2022-05-04 11:01:59 -04:00
parent b2feb62d8a
commit e2e4014db3

View File

@ -197,7 +197,7 @@ def extract_entries(entries, flags=0, callback=None, totalsize=None, extractlist
for entry in entries:
if str(entry).endswith('TRANS.TBL'):
continue
if extractlist and str(entry) not in extractlist:
if extractlist and str(entry).lower() not in extractlist:
continue
write_header(write_p, entry._entry_p)
read_p = entry._archive_p
@ -369,7 +369,7 @@ def check_ubuntu(isoinfo):
return {'name': 'ubuntu-{0}-{1}'.format(ver, arch),
'method': EXTRACT|COPY,
'extractlist': ['casper/vmlinuz', 'casper/initrd',
'EFI/BOOT/BOOTx64.EFI', 'EFI/BOOT/grubx64.efi'
'efi/boot/bootx64.efi', 'efi/boot/grubx64.efi'
],
'copyto': 'install.iso',
'category': 'ubuntu{0}'.format(major)}