mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
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:
parent
ceac1f7264
commit
943c2b64bf
2 changed files with 2 additions and 2 deletions
|
|
@ -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('+'):
|
||||
|
|
|
|||
|
|
@ -448,7 +448,7 @@ valuetypes = {
|
|||
["AntiFeatures"]),
|
||||
|
||||
FieldValidator("Auto Update Mode",
|
||||
r"^(Version .+|None)$",
|
||||
r"^(Version.*|None)$",
|
||||
["AutoUpdateMode"]),
|
||||
|
||||
FieldValidator("Update Check Mode",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue