1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

[lint] only check for https with UpdateCheckMode HTTP

With 133b626b UpdateCheckMode is now also allowed with Tags but it uses
the files from the local repo.
This commit is contained in:
Jochen Sprickerhof 2021-06-07 18:52:57 +02:00
parent b6233fa2ce
commit 49248ba3a9

View File

@ -217,7 +217,7 @@ def get_lastbuild(builds):
def check_update_check_data_url(app): def check_update_check_data_url(app):
"""UpdateCheckData must have a valid HTTPS URL to protect checkupdates runs """UpdateCheckData must have a valid HTTPS URL to protect checkupdates runs
""" """
if app.UpdateCheckData: if app.UpdateCheckData and app.UpdateCheckMode == 'HTTP':
urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|') urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|')
for url in (urlcode, urlver): for url in (urlcode, urlver):
if url != '.': if url != '.':