From dedce2f2368c374318ec951a3f951ccfa9545db1 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 4 Nov 2022 19:48:21 +0100 Subject: [PATCH] lint: AUM with UCM: HTTP must have a pattern Closes: #1029 --- fdroidserver/lint.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index a052557e..e8417510 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -690,6 +690,12 @@ def check_updates_expected(app): ) +def check_updates_ucm_http_aum_pattern(app): # noqa: D403 + """AutoUpdateMode with UpdateCheckMode: HTTP must have a pattern.""" + if app.UpdateCheckMode == "HTTP" and app.AutoUpdateMode == "Version": + yield _("AutoUpdateMode with UpdateCheckMode: HTTP must have a pattern.") + + def main(): global config, options @@ -798,6 +804,7 @@ def main(): check_license_tag, check_current_version_code, check_updates_expected, + check_updates_ucm_http_aum_pattern, ] for check_func in app_check_funcs: