chiark / gitweb /
Only do an update if the vercode changes
authorCiaran Gultnieks <ciaran@ciarang.com>
Tue, 27 Aug 2013 15:42:25 +0000 (16:42 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Tue, 27 Aug 2013 15:42:25 +0000 (16:42 +0100)
(mainly to work around a recently introduced issue where the name
changes and then changes straight back!)

fdroidserver/checkupdates.py

index 1fcb023b9b58a5118e659039f9f66791e3c27006..c67a226b529292063f0e96e16d1ec8e5a9551403 100644 (file)
@@ -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)