chiark / gitweb /
checkupdates --gplay: inform if not bigger but different version
authorJean Privat <jean@pryen.org>
Wed, 15 Jan 2014 16:25:31 +0000 (11:25 -0500)
committerJean Privat <jean@pryen.org>
Wed, 15 Jan 2014 16:33:35 +0000 (11:33 -0500)
Could be useful to detect some potential issues.
eg. if comparison with LooseVersion is too lose or if there is some
renumbering in the application.

This is activated only if options.verbose is set

Signed-off-by: Jean Privat <jean@pryen.org>
fdroidserver/checkupdates.py

index 8adaf2973ebcb4705198ab82aa0d31af3e71edaf..fbaf5684bf1c004df8d3e16fcf1e7917c6190722 100644 (file)
@@ -322,8 +322,12 @@ def main():
                     print "%s has version %s on the Play Store, which is bigger than %s" % (
                             common.getappname(app), version, stored)
                 elif options.verbose:
-                    print "%s has the same version %s on the Play Store" % (
-                            common.getappname(app), version)
+                    if stored != version:
+                        print "%s has version %s on the Play Store, which differs from %s" % (
+                                common.getappname(app), version, stored)
+                    else:
+                        print "%s has the same version %s on the Play Store" % (
+                                common.getappname(app), version)
         return