From dd0b38a7e545f1213433b6346a84ec080bdf7dc2 Mon Sep 17 00:00:00 2001 From: Julian Strobl Date: Thu, 11 Feb 2016 19:50:16 +0100 Subject: [PATCH] use tag if version name is unknown 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 7f58e156..b617ea9a 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -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) -- 2.30.2