fix check_http and add tests
I thought I should add some tests for check updates. During that I found a serious bug in !659 (merged). (@gerhardol)
This will always ignore all apps without a app.UpdateCheckIgnore
value.
ignoreversions = app.UpdateCheckIgnore
ignoresearch = re.compile(ignoreversions).search if ignoreversions else None
...
if version and ignoresearch and not ignoresearch(version):
return (version, vercode)
return (None, ("Version {version} is ignored").format(version=version))
snippet copied from: !659 (diffs)
Edited by Michael Pöhn