chiark / gitweb /
update: do not include PGP signatures as "media" files
authorHans-Christoph Steiner <hans@eds.org>
Wed, 1 Mar 2017 20:25:42 +0000 (21:25 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 6 Mar 2017 10:55:17 +0000 (11:55 +0100)
A .asc or .sig file is a detached PGPG signature, `fdroid gpgsign`
generates them.  It makes no sense for them to be ever treated as a file
for distribution.

This also adds to forgotten forms of index files.

fdroidserver/common.py

index e01b71159610eb77865f33c52c2ffa0c675162f5..1d2275f19503eeb47bff3ca96ccdae75e71f3304 100644 (file)
@@ -2163,8 +2163,11 @@ def get_per_app_repos():
 def is_repo_file(filename):
     '''Whether the file in a repo is a build product to be delivered to users'''
     return os.path.isfile(filename) \
+        and not filename.endswith('.asc') \
+        and not filename.endswith('.sig') \
         and os.path.basename(filename) not in [
             'index.jar',
+            'index_unsigned.jar',
             'index.xml',
             'index.html',
             'categories.txt',