mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Merge branch 'check_no_updates_expected' into 'master'
[lint] Complain if checking for updates makes no sense See merge request fdroid/fdroidserver!1187
This commit is contained in:
commit
7aa4b2678b
1 changed files with 11 additions and 0 deletions
|
@ -662,6 +662,16 @@ 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')
|
||||||
|
):
|
||||||
|
yield _(
|
||||||
|
'App has NoSourceSince or ArchivePolicy "0 versions" but AutoUpateMode or UpdateCheck are not None'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
global config, options
|
global config, options
|
||||||
|
@ -768,6 +778,7 @@ def main():
|
||||||
check_format,
|
check_format,
|
||||||
check_license_tag,
|
check_license_tag,
|
||||||
check_current_version_code,
|
check_current_version_code,
|
||||||
|
check_updates_expected,
|
||||||
]
|
]
|
||||||
|
|
||||||
for check_func in app_check_funcs:
|
for check_func in app_check_funcs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue