From 5f8760453985c87c7a4c881876ce00719adc0381 Mon Sep 17 00:00:00 2001 From: Andre Kahles Date: Mon, 18 Nov 2024 18:08:24 +0100 Subject: [PATCH] forget to add parts.txt to allowed extension list --- archiver/constants.py | 2 +- archiver/integrity.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archiver/constants.py b/archiver/constants.py index 37c3f71..33a459f 100644 --- a/archiver/constants.py +++ b/archiver/constants.py @@ -12,7 +12,7 @@ ENCRYPTION_ALGORITHM = "AES256" ENV_VAR_MAPPER_MAX_CPUS = "ARCHIVER_MAX_CPUS_ENV_VAR" DEFAULT_COMPRESSION_LEVEL = 6 -ALLOWED_SUFFIXES = ['.part[0-9]+', '.tar', '.md5', '.lz', '.gpg', '.lst'] +ALLOWED_SUFFIXES = ['.part[0-9]+', '.tar', '.md5', '.lz', '.gpg', '.lst', '.parts', '.txt'] ALLOWED_SUFFIXES_REG = '(' + ')|('.join(ALLOWED_SUFFIXES) + ')' MD5_LINE_REGEX = re.compile(r'(\S+)\s+(\S.*)') diff --git a/archiver/integrity.py b/archiver/integrity.py index 7656b23..e6c31ac 100644 --- a/archiver/integrity.py +++ b/archiver/integrity.py @@ -23,7 +23,7 @@ def check_integrity(source_path, deep_flag=False, threads=None, work_dir=None, a integrity_result = check_archive_list_integrity(source_path, archive_name) else: file_path = source_path.parent / Path(helpers.filename_without_archive_extensions(source_path)) - integrity_result = check_archive_part_integrity(file_path, archive_name) + integrity_result = check_archive_part_integrity(file_path) if not integrity_result: logging.error(