mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Merge branch 'lint_fix' into 'master'
lint: fix update check data https check See merge request fdroid/fdroidserver!473
This commit is contained in:
commit
654b3cb9dc
1 changed files with 6 additions and 5 deletions
|
|
@ -214,6 +214,7 @@ def check_update_check_data_url(app):
|
||||||
if app.UpdateCheckData:
|
if app.UpdateCheckData:
|
||||||
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 != '.':
|
||||||
parsed = urllib.parse.urlparse(url)
|
parsed = urllib.parse.urlparse(url)
|
||||||
if not parsed.scheme or not parsed.netloc:
|
if not parsed.scheme or not parsed.netloc:
|
||||||
yield _('UpdateCheckData not a valid URL: {url}').format(url=url)
|
yield _('UpdateCheckData not a valid URL: {url}').format(url=url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue