mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-15 11:27:34 -04:00
checkupdates: no need to sort tags if len()<=5
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user