mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-15 19:00:11 +02:00
use logging.warning in checkupdates
This commit is contained in:
parent
42a049cd74
commit
1c4d377793
@ -454,7 +454,7 @@ def checkupdates_app(app):
|
||||
if noverok:
|
||||
logging.info(logmsg)
|
||||
else:
|
||||
logging.warn(logmsg)
|
||||
logging.warning(logmsg)
|
||||
elif vercode == app.CurrentVersionCode:
|
||||
logging.info("...up to date")
|
||||
else:
|
||||
@ -475,7 +475,7 @@ def checkupdates_app(app):
|
||||
if options.auto:
|
||||
mode = app.AutoUpdateMode
|
||||
if not app.CurrentVersionCode:
|
||||
logging.warn("Can't auto-update app with no current version code: " + app.id)
|
||||
logging.warning("Can't auto-update app with no current version code: " + app.id)
|
||||
elif mode in ('None', 'Static'):
|
||||
pass
|
||||
elif mode.startswith('Version '):
|
||||
@ -512,7 +512,7 @@ def checkupdates_app(app):
|
||||
ver = common.getcvname(app)
|
||||
commitmsg = "Update %s to %s" % (name, ver)
|
||||
else:
|
||||
logging.warn('Invalid auto update mode "' + mode + '" on ' + app.id)
|
||||
logging.warning('Invalid auto update mode "' + mode + '" on ' + app.id)
|
||||
|
||||
if commitmsg:
|
||||
metadata.write_metadata(app.metadatapath, app)
|
||||
|
Loading…
Reference in New Issue
Block a user