mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
Merge branch 'checkupdates_disabled' into 'master'
[checkupdates] Don't fail for disabled apps See merge request fdroid/fdroidserver!987
This commit is contained in:
commit
badc40b816
@ -434,7 +434,8 @@ def checkupdates_app(app):
|
||||
elif mode == 'HTTP':
|
||||
(version, vercode) = check_http(app)
|
||||
elif mode in ('None', 'Static'):
|
||||
raise MetaDataException(_('Checking disabled'))
|
||||
logging.debug('Checking disabled')
|
||||
return
|
||||
else:
|
||||
raise MetaDataException(_('Invalid UpdateCheckMode: {mode}').format(mode=mode))
|
||||
|
||||
@ -455,7 +456,7 @@ def checkupdates_app(app):
|
||||
|
||||
updating = False
|
||||
if version is None:
|
||||
logging.warning('no version information found for {appid}'.format(appid=app.id))
|
||||
raise FDroidException(_('no version information found'))
|
||||
elif vercode == app.CurrentVersionCode:
|
||||
logging.debug("...up to date")
|
||||
elif int(vercode) > int(app.CurrentVersionCode):
|
||||
|
Loading…
Reference in New Issue
Block a user