chiark / gitweb /
checkupdates: no need to sort tags if len()<=5
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 27 Oct 2015 12:41:09 +0000 (13:41 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 27 Oct 2015 12:41:09 +0000 (13:41 +0100)
fdroidserver/checkupdates.py

index 9a924922cceea5212e2dec2659eff61982f640e9..fdc7157bf7a3a97b0e96bb72906fc12f3e5cf604 100644 (file)
@@ -134,7 +134,7 @@ def check_tags(app, pattern):
             tags = [tag for tag in tags if pat.match(tag)]
             logging.debug("Matching tags: " + ','.join(tags))
 
-        if repotype in ('git',):
+        if len(tags) > 5 and repotype in ('git',):
             tags = vcs.latesttags(tags, 5)
             logging.debug("Latest tags: " + ','.join(tags))