1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-15 10:50:09 +02:00

checkupdates: check_http fix ignore check

This commit is contained in:
Michael Pöhn 2019-07-23 18:07:22 +02:00
parent 23280b6029
commit be3d498391

View File

@ -85,9 +85,13 @@ def check_http(app):
raise FDroidException("No RE match for version")
version = m.group(1)
if version and ignoresearch and not ignoresearch(version):
if ignoresearch and version:
if not ignoresearch(version):
return (version, vercode)
else:
return (None, ("Version {version} is ignored").format(version=version))
else:
return (version, vercode)
return (None, ("Version {version} is ignored").format(version=version))
except FDroidException:
msg = "Could not complete http check for app {0} due to unknown error: {1}".format(app.id, traceback.format_exc())
return (None, msg)