From: Ciaran Gultnieks Date: Tue, 27 Aug 2013 15:42:25 +0000 (+0100) Subject: Only do an update if the vercode changes X-Git-Tag: 0.1~429 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9137a611e0877a984d214cbc1857bc0def7f0e60;p=fdroidserver.git 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!) --- 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)