From 33b489c65de1a474016d5d3e1e1a513438f5a6a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Thu, 29 Aug 2013 16:17:12 +0200 Subject: [PATCH] Better CV update prints and commit messages --- fdroidserver/checkupdates.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index c67a226b..95f58a9a 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -289,16 +289,16 @@ def main(): version = None vercode = 'Invalid update check method' + updating = False if not version: print "..." + vercode elif vercode == app['Current Version Code']: print "...up to date" else: - print '...updating to version:' + version + ' vercode:' + vercode app['Current Version'] = version app['Current Version Code'] = str(int(vercode)) + updating = True writeit = True - logmsg = "Update current version of " + app['id'] + " to " + version # Do the Auto Name thing as well as finding the CV real name if len(app["Repo Type"]) > 0: @@ -333,6 +333,11 @@ def main(): except Exception: msg = "Auto Name or Current Version failed for %s due to exception: %s" % (app['id'], traceback.format_exc()) + if updating: + print '...updating to version %s (%s)' % (app['Current Version'], app['Current Version Code']) + name = str('%s (%s)' % (app['Auto Name'], app['id']) if app['Auto Name'] else app['id']) + logmsg = 'Update current version of %s to %s (%s)' % (name, app['Current Version'], app['Current Version Code']) + if options.auto: mode = app['Auto Update Mode'] if mode == 'None': -- 2.30.2