1
0
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:
Ciaran Gultnieks 2016-09-26 21:46:16 +00:00
commit d3a215c12b

View File

@ -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:]