chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'py3' into 'master'
[fdroidserver.git]
/
fdroidserver
/
checkupdates.py
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index 46200199f4b2bb97aa1ee0fe360ebf34c2ec2a45..d9514cd93817d22863f0fd9f13c48679ee171356 100644
(file)
--- a/
fdroidserver/checkupdates.py
+++ b/
fdroidserver/checkupdates.py
@@
-121,7
+121,11
@@
def check_tags(app, pattern):
hver = None
hcode = "0"
hver = None
hcode = "0"
- tags = vcs.gettags()
+ tags = []
+ if repotype == 'git':
+ tags = vcs.latesttags()
+ else:
+ tags = vcs.gettags()
if not tags:
return (None, "No tags found", None)
if not tags:
return (None, "No tags found", None)
@@
-133,8
+137,8
@@
def check_tags(app, pattern):
return (None, "No matching tags found", None)
logging.debug("Matching tags: " + ','.join(tags))
return (None, "No matching tags found", None)
logging.debug("Matching tags: " + ','.join(tags))
- if len(tags) > 5 and repotype
in ('git',)
:
- tags =
vcs.latesttags(tags, 5)
+ if len(tags) > 5 and repotype
== 'git'
:
+ tags =
tags[:5]
logging.debug("Latest tags: " + ','.join(tags))
for tag in tags:
logging.debug("Latest tags: " + ','.join(tags))
for tag in tags: