- Detecting a new format should be more common
This commit is contained in:
parent
1e8aafba61
commit
3a7c84896f
@ -91,7 +91,8 @@ def get_file_checksum(file_path: str, checksum_type: str = 'sha1',
|
||||
|
||||
|
||||
def extract_checksum_and_file_path(line: str) -> Tuple[str, str]:
|
||||
if 'SHA512' in line.upper():
|
||||
# new format
|
||||
if '=' in line.upper():
|
||||
file_path, checksum = line.split('=')
|
||||
file_path = file_path.strip().split(' ')[1].strip('(').strip(')')
|
||||
checksum = checksum.strip()
|
||||
|
Loading…
Reference in New Issue
Block a user