mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
checkupdates: better "no tags" messages
This commit is contained in:
parent
ece3317be0
commit
2de274326a
1 changed files with 5 additions and 0 deletions
|
|
@ -128,10 +128,15 @@ def check_tags(app, pattern):
|
||||||
hcode = "0"
|
hcode = "0"
|
||||||
|
|
||||||
tags = vcs.gettags()
|
tags = vcs.gettags()
|
||||||
|
if not tags:
|
||||||
|
return (None, "No tags found", None)
|
||||||
|
|
||||||
logging.debug("All tags: " + ','.join(tags))
|
logging.debug("All tags: " + ','.join(tags))
|
||||||
if pattern:
|
if pattern:
|
||||||
pat = re.compile(pattern)
|
pat = re.compile(pattern)
|
||||||
tags = [tag for tag in tags if pat.match(tag)]
|
tags = [tag for tag in tags if pat.match(tag)]
|
||||||
|
if not tags:
|
||||||
|
return (None, "No matching tags found", None)
|
||||||
logging.debug("Matching tags: " + ','.join(tags))
|
logging.debug("Matching tags: " + ','.join(tags))
|
||||||
|
|
||||||
if len(tags) > 5 and repotype in ('git',):
|
if len(tags) > 5 and repotype in ('git',):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue