mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +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)
|
logging.warning("Can't auto-update app with no CurrentVersionCode: " + app.id)
|
||||||
elif mode in ('None', 'Static'):
|
elif mode in ('None', 'Static'):
|
||||||
pass
|
pass
|
||||||
elif mode.startswith('Version '):
|
elif mode.startswith('Version'):
|
||||||
pattern = mode[8:]
|
pattern = mode[8:]
|
||||||
suffix = ''
|
suffix = ''
|
||||||
if pattern.startswith('+'):
|
if pattern.startswith('+'):
|
||||||
|
|
|
||||||
|
|
@ -448,7 +448,7 @@ valuetypes = {
|
||||||
["AntiFeatures"]),
|
["AntiFeatures"]),
|
||||||
|
|
||||||
FieldValidator("Auto Update Mode",
|
FieldValidator("Auto Update Mode",
|
||||||
r"^(Version .+|None)$",
|
r"^(Version.*|None)$",
|
||||||
["AutoUpdateMode"]),
|
["AutoUpdateMode"]),
|
||||||
|
|
||||||
FieldValidator("Update Check Mode",
|
FieldValidator("Update Check Mode",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue