diff --git a/almalinux/gitutils/common.py b/almalinux/gitutils/common.py index f61bd28..8cb0b26 100644 --- a/almalinux/gitutils/common.py +++ b/almalinux/gitutils/common.py @@ -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()