From 3a7c84896f2dcdbd6fc13fb5df11af43b92ec850 Mon Sep 17 00:00:00 2001 From: Stepan Oksanichenko Date: Sat, 28 Sep 2024 00:49:38 +0300 Subject: [PATCH] - Detecting a new format should be more common --- almalinux/gitutils/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()