Fix issue #459: Wrong detection of Windows ISO, detect as memdisk_iso instead of Windows

pull/460/head
Hoang-Anh Nguyen 5 years ago
parent 7c86a2bdfd
commit 0b504f2a8c

@ -212,7 +212,12 @@ def detect_iso_from_file_list(iso_file_list):
filenames = [f.lower() for f in iso_file_list]
for keys, distro in keys_to_distro:
if all(k in filenames for k in keys):
match = True
for k in keys:
if all(k not in fn for fn in filenames):
match = False
break
if match is True:
return distro
#log("Examined %d %s in the iso but could not determine the distro."
# % (len(filenames), len(filenames)==1 and 'filename' or 'filenames'))

Loading…
Cancel
Save