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(