mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
update: do not include PGP signatures as "media" files
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.
This commit is contained in:
parent
f79f08a1c1
commit
0be58c2dca
1 changed files with 3 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue