Skip to content

Commit

Permalink
forget to add parts.txt to allowed extension list
Browse files Browse the repository at this point in the history
  • Loading branch information
akahles committed Nov 18, 2024
1 parent 48ce9be commit 5f87604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archiver/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*)')
2 changes: 1 addition & 1 deletion archiver/integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5f87604

Please sign in to comment.