chiark / gitweb /
use tag if version name is unknown
authorJulian Strobl <julian@endocode.com>
Thu, 11 Feb 2016 18:50:16 +0000 (19:50 +0100)
committerJulian Strobl <julian@endocode.com>
Thu, 11 Feb 2016 18:50:16 +0000 (19:50 +0100)
If we don't find the version name neither in the AndroidManifest.xml nor
in the build.grade file, we fallback to the tag the user specified to
search for.

That way we have a better version name than 'Unknown'.

fdroidserver/checkupdates.py

index 7f58e156def4d926fd674f8eac9a162e08296a11..b617ea9aa12d7e13a1a44851dfc75e560ca82526 100644 (file)
@@ -388,6 +388,8 @@ def checkupdates_app(app, first=True):
     if mode.startswith('Tags'):
         pattern = mode[5:] if len(mode) > 4 else None
         (version, vercode, tag) = check_tags(app, pattern)
+        if version == 'Unknown':
+            version = tag
         msg = vercode
     elif mode == 'RepoManifest':
         (version, vercode) = check_repomanifest(app)