1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

lint: fix update check data https check

The urlver field can be '.', this was not considered in
26bfd7fb28.
This commit is contained in:
Marcus Hoffmann 2018-03-02 23:56:49 +01:00
parent c35b120ff2
commit c81d5da953
No known key found for this signature in database
GPG Key ID: ACDF63BC43D5E530

View File

@ -214,6 +214,7 @@ def check_update_check_data_url(app):
if app.UpdateCheckData:
urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|')
for url in (urlcode, urlver):
if url != '.':
parsed = urllib.parse.urlparse(url)
if not parsed.scheme or not parsed.netloc:
yield _('UpdateCheckData not a valid URL: {url}').format(url=url)