From 9137a611e0877a984d214cbc1857bc0def7f0e60 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 27 Aug 2013 16:42:25 +0100 Subject: [PATCH] Only do an update if the vercode changes (mainly to work around a recently introduced issue where the name changes and then changes straight back!) --- fdroidserver/checkupdates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 1fcb023b..c67a226b 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -291,7 +291,7 @@ def main(): if not version: print "..." + vercode - elif vercode == app['Current Version Code'] and version == app['Current Version']: + elif vercode == app['Current Version Code']: print "...up to date" else: print '...updating to version:' + version + ' vercode:' + vercode @@ -371,6 +371,7 @@ def main(): metafile = os.path.join('metadata', app['id'] + '.txt') common.write_metadata(metafile, app) if options.commit and logmsg: + print "Commiting update for " + metafile if subprocess.call("git add " + metafile, shell=True) != 0: print "Git add failed" sys.exit(1) -- 2.30.2