chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece3317
)
checkupdates: better "no tags" messages
author
Daniel Martí
<mvdan@mvdan.cc>
Tue, 27 Oct 2015 12:42:02 +0000
(13:42 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Tue, 27 Oct 2015 12:42:02 +0000
(13:42 +0100)
fdroidserver/checkupdates.py
patch
|
blob
|
history
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index fdc7157bf7a3a97b0e96bb72906fc12f3e5cf604..a545171fb98fd6b3628e76ff057ecbffbb45e3e6 100644
(file)
--- a/
fdroidserver/checkupdates.py
+++ b/
fdroidserver/checkupdates.py
@@
-128,10
+128,15
@@
def check_tags(app, pattern):
hcode = "0"
tags = vcs.gettags()
+ if not tags:
+ return (None, "No tags found", None)
+
logging.debug("All tags: " + ','.join(tags))
if pattern:
pat = re.compile(pattern)
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))
if len(tags) > 5 and repotype in ('git',):