Support AutoUpdateMode: Version without pattern

Since 24dd6740 UpdateCheckMode: Tags uses the found tag instead of
regenerating it from the AutoUpdateMode pattern making the pattern
superfluous. This adds support for dropping the pattern and a test case.
This commit is contained in:
Jochen Sprickerhof 2021-05-30 11:12:42 +02:00
parent 4c339b4ef4
commit 185da60d93
3 changed files with 34 additions and 2 deletions

View file

@ -492,7 +492,7 @@ def checkupdates_app(app):
logging.warning("Can't auto-update app with no CurrentVersionCode: " + app.id)
elif mode in ('None', 'Static'):
pass
elif mode.startswith('Version '):
elif mode.startswith('Version'):
pattern = mode[8:]
suffix = ''
if pattern.startswith('+'):