mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
checkupdates: don't ignore repeated tags
If multiple tags point at the same commit, limiting the regex search to one tag per line would only catch one tag. This broke org.wikipedia's update check.
This commit is contained in:
parent
f57e61821c
commit
23ef5b072a
@ -705,7 +705,7 @@ class vcs_git(vcs):
|
||||
p = FDroidPopen(['git', 'tag'], cwd=self.local, output=False)
|
||||
return p.output.splitlines()
|
||||
|
||||
tag_format = re.compile(r'.*tag: ([^),]*).*')
|
||||
tag_format = re.compile(r'tag: ([^),]*)')
|
||||
|
||||
def latesttags(self):
|
||||
self.checkrepo()
|
||||
@ -714,10 +714,7 @@ class vcs_git(vcs):
|
||||
cwd=self.local, output=False)
|
||||
tags = []
|
||||
for line in p.output.splitlines():
|
||||
m = self.tag_format.match(line)
|
||||
if not m:
|
||||
continue
|
||||
tag = m.group(1)
|
||||
for tag in self.tag_format.findall(line):
|
||||
tags.append(tag)
|
||||
return tags
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user