chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45d99d1
)
use tag if version name is unknown
author
Julian Strobl
<julian@endocode.com>
Thu, 11 Feb 2016 18:50:16 +0000
(19:50 +0100)
committer
Julian 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
patch
|
blob
|
history
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index 7f58e156def4d926fd674f8eac9a162e08296a11..b617ea9aa12d7e13a1a44851dfc75e560ca82526 100644
(file)
--- 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)