🏏 alt-store index: incorporate review feedback

This commit is contained in:
Michael Pöhn 2024-04-23 17:28:30 +02:00
parent f2118b35a3
commit d00a87ed6c
No known key found for this signature in database
GPG key ID: 725F386C05529A5A
4 changed files with 28 additions and 14 deletions

View file

@ -4155,7 +4155,6 @@ def is_repo_file(filename, for_gpg_signing=False):
if isinstance(filename, str):
filename = filename.encode('utf-8', errors="surrogateescape")
ignore_files = [
b'altstore-index.json',
b'entry.jar',
b'index-v1.jar',
b'index.css',
@ -4166,7 +4165,12 @@ def is_repo_file(filename, for_gpg_signing=False):
b'index_unsigned.jar',
]
if not for_gpg_signing:
ignore_files += [b'entry.json', b'index-v1.json', b'index-v2.json']
ignore_files += [
b'altstore-index.json',
b'entry.json',
b'index-v1.json',
b'index-v2.json',
]
return (
os.path.isfile(filename)