1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

[lint] Fix comparisons in check_updates_expected

This commit is contained in:
FestplattenSchnitzel 2022-09-14 11:52:49 +02:00 committed by Jochen Sprickerhof
parent 7d94055830
commit 580ce85412

View File

@ -664,8 +664,10 @@ def check_current_version_code(app):
def check_updates_expected(app):
"""Check if update checking makes sense."""
if (app.get('NoSourceSince') or app.get('ArchivePolicy') == '0 versions') and (
app.get('AutoUpdateMode') or app.get('UpdateCheckMode')
if (
app.get('NoSourceSince') or app.get('ArchivePolicy') == '0 versions'
) and not all(
app.get(key, 'None') == 'None' for key in ('AutoUpdateMode', 'UpdateCheckMode')
):
yield _(
'App has NoSourceSince or ArchivePolicy "0 versions" but AutoUpateMode or UpdateCheck are not None'