From c81d5da95373093e05ada9c20c40eae907a17f87 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Fri, 2 Mar 2018 23:56:49 +0100 Subject: [PATCH] lint: fix update check data https check The urlver field can be '.', this was not considered in 26bfd7fb28163abbf8f599609ce57e2bd10a9eed. --- fdroidserver/lint.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 13779747..ed86e29a 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -214,11 +214,12 @@ def check_update_check_data_url(app): if app.UpdateCheckData: urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|') for url in (urlcode, urlver): - parsed = urllib.parse.urlparse(url) - if not parsed.scheme or not parsed.netloc: - yield _('UpdateCheckData not a valid URL: {url}').format(url=url) - if parsed.scheme != 'https': - yield _('UpdateCheckData must use HTTPS URL: {url}').format(url=url) + 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) + if parsed.scheme != 'https': + yield _('UpdateCheckData must use HTTPS URL: {url}').format(url=url) def check_ucm_tags(app):