Ignoring missing crc is ignore_crc attribute is present in the element

This commit is contained in:
José Manuel Barroso Galindo
2021-02-15 19:48:54 +01:00
committed by GitHub
parent 2c5d1f603c
commit 950c3f65c9

View File

@@ -102,7 +102,7 @@ def parseMRA(mraFile):
#output_line(crclist)
for item in root.findall('rom/part'):
#output_line(item.attrib)
if ('name' in item.attrib and 'crc' not in item.attrib):
if ('name' in item.attrib and 'crc' not in item.attrib and 'ignore_crc' not in item.attrib):
missingCRCs = missingCRCs + 1
if ('partnames' not in info):
info['partnames'] = []