mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50: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:
|
if noverok:
|
||||||
logging.info(logmsg)
|
logging.info(logmsg)
|
||||||
else:
|
else:
|
||||||
logging.warn(logmsg)
|
logging.warning(logmsg)
|
||||||
elif vercode == app.CurrentVersionCode:
|
elif vercode == app.CurrentVersionCode:
|
||||||
logging.info("...up to date")
|
logging.info("...up to date")
|
||||||
else:
|
else:
|
||||||
|
|
@ -475,7 +475,7 @@ def checkupdates_app(app):
|
||||||
if options.auto:
|
if options.auto:
|
||||||
mode = app.AutoUpdateMode
|
mode = app.AutoUpdateMode
|
||||||
if not app.CurrentVersionCode:
|
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'):
|
elif mode in ('None', 'Static'):
|
||||||
pass
|
pass
|
||||||
elif mode.startswith('Version '):
|
elif mode.startswith('Version '):
|
||||||
|
|
@ -512,7 +512,7 @@ def checkupdates_app(app):
|
||||||
ver = common.getcvname(app)
|
ver = common.getcvname(app)
|
||||||
commitmsg = "Update %s to %s" % (name, ver)
|
commitmsg = "Update %s to %s" % (name, ver)
|
||||||
else:
|
else:
|
||||||
logging.warn('Invalid auto update mode "' + mode + '" on ' + app.id)
|
logging.warning('Invalid auto update mode "' + mode + '" on ' + app.id)
|
||||||
|
|
||||||
if commitmsg:
|
if commitmsg:
|
||||||
metadata.write_metadata(app.metadatapath, app)
|
metadata.write_metadata(app.metadatapath, app)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue