mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03: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
1 changed files with 3 additions and 2 deletions
|
@ -434,7 +434,8 @@ def checkupdates_app(app):
|
||||||
elif mode == 'HTTP':
|
elif mode == 'HTTP':
|
||||||
(version, vercode) = check_http(app)
|
(version, vercode) = check_http(app)
|
||||||
elif mode in ('None', 'Static'):
|
elif mode in ('None', 'Static'):
|
||||||
raise MetaDataException(_('Checking disabled'))
|
logging.debug('Checking disabled')
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
raise MetaDataException(_('Invalid UpdateCheckMode: {mode}').format(mode=mode))
|
raise MetaDataException(_('Invalid UpdateCheckMode: {mode}').format(mode=mode))
|
||||||
|
|
||||||
|
@ -455,7 +456,7 @@ def checkupdates_app(app):
|
||||||
|
|
||||||
updating = False
|
updating = False
|
||||||
if version is None:
|
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:
|
elif vercode == app.CurrentVersionCode:
|
||||||
logging.debug("...up to date")
|
logging.debug("...up to date")
|
||||||
elif int(vercode) > int(app.CurrentVersionCode):
|
elif int(vercode) > int(app.CurrentVersionCode):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue