mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
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'.
This commit is contained in:
parent
45d99d1cc9
commit
dd0b38a7e5
1 changed files with 2 additions and 0 deletions
|
|
@ -388,6 +388,8 @@ def checkupdates_app(app, first=True):
|
||||||
if mode.startswith('Tags'):
|
if mode.startswith('Tags'):
|
||||||
pattern = mode[5:] if len(mode) > 4 else None
|
pattern = mode[5:] if len(mode) > 4 else None
|
||||||
(version, vercode, tag) = check_tags(app, pattern)
|
(version, vercode, tag) = check_tags(app, pattern)
|
||||||
|
if version == 'Unknown':
|
||||||
|
version = tag
|
||||||
msg = vercode
|
msg = vercode
|
||||||
elif mode == 'RepoManifest':
|
elif mode == 'RepoManifest':
|
||||||
(version, vercode) = check_repomanifest(app)
|
(version, vercode) = check_repomanifest(app)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue