X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=fdroidserver%2Fcheckupdates.py;h=d9514cd93817d22863f0fd9f13c48679ee171356;hb=f267a1d7c94793dfd336f1fd4c06c75be0c70157;hp=46200199f4b2bb97aa1ee0fe360ebf34c2ec2a45;hpb=375af1b8444ff527be19aa0c1e2d4d901e15fe12;p=fdroidserver.git diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 46200199..d9514cd9 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -121,7 +121,11 @@ def check_tags(app, pattern): 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) @@ -133,8 +137,8 @@ def check_tags(app, pattern): 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: