From: Julian Strobl Date: Thu, 11 Feb 2016 18:50:16 +0000 (+0100) Subject: use tag if version name is unknown X-Git-Tag: 0.6.0~15^2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dd0b38a7e545f1213433b6346a84ec080bdf7dc2;p=fdroidserver.git 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'. --- 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)