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 committed by Hans-Christoph Steiner
parent ceac1f7264
commit 943c2b64bf
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
2 changed files with 2 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('+'):

View file

@ -448,7 +448,7 @@ valuetypes = {
["AntiFeatures"]),
FieldValidator("Auto Update Mode",
r"^(Version .+|None)$",
r"^(Version.*|None)$",
["AutoUpdateMode"]),
FieldValidator("Update Check Mode",