mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
use logging.warning in checkupdates
This commit is contained in:
parent
42a049cd74
commit
1c4d377793
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue