chiark / gitweb /
Merge branch 'lint_fix' into 'master'
authorMarcus <bubu@bubu1.eu>
Fri, 2 Mar 2018 22:59:26 +0000 (22:59 +0000)
committerMarcus <bubu@bubu1.eu>
Fri, 2 Mar 2018 22:59:26 +0000 (22:59 +0000)
lint: fix update check data https check

See merge request fdroid/fdroidserver!473

fdroidserver/lint.py

index 13779747d763a1b687637ff108a0997b4065e9f8..ed86e29ad32473e5ffc48a76689f6576a6d5afc1 100644 (file)
@@ -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):