mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
Merge branch 'checkupdates-crash' into 'master'
checkupdates: avoid crash with --auto and None CVC As reported by @CiaranG. See merge request !173
This commit is contained in:
commit
d3a215c12b
@ -452,7 +452,9 @@ def checkupdates_app(app, first=True):
|
||||
|
||||
if options.auto:
|
||||
mode = app.AutoUpdateMode
|
||||
if mode in ('None', 'Static'):
|
||||
if not app.CurrentVersionCode:
|
||||
logging.warn("Can't auto-update app with no current version code: " + app.id)
|
||||
elif mode in ('None', 'Static'):
|
||||
pass
|
||||
elif mode.startswith('Version '):
|
||||
pattern = mode[8:]
|
||||
|
Loading…
Reference in New Issue
Block a user