don't include .idsig files into the index

.idsig files contain an apksig v4 (https://source.android.com/security/apksigning/v4)
new versions of apksigner make this signature by default and it ends up
in /repo. Without this patch it would be included into the index as a
file to be downloaded by users. F-Droid Client crashes when it
encounters such an apk entry.

It's fine to have these signature files in the repo though, maybe
fdroidclient can make use of them at some point in the future (they are
intended to support streaming app installations).
This commit is contained in:
Marcus Hoffmann 2020-10-16 22:50:29 +02:00
parent 8c32cd2b43
commit 03b1adbe2b
1 changed files with 1 additions and 0 deletions

View File

@ -3731,6 +3731,7 @@ def is_repo_file(filename):
return os.path.isfile(filename) \
and not filename.endswith(b'.asc') \
and not filename.endswith(b'.sig') \
and not filename.endswith(b'.idsig') \
and not filename.endswith(b'.log.gz') \
and os.path.basename(filename) not in [
b'index.jar',