mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03: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
1 changed files with 3 additions and 6 deletions
|
@ -705,7 +705,7 @@ class vcs_git(vcs):
|
||||||
p = FDroidPopen(['git', 'tag'], cwd=self.local, output=False)
|
p = FDroidPopen(['git', 'tag'], cwd=self.local, output=False)
|
||||||
return p.output.splitlines()
|
return p.output.splitlines()
|
||||||
|
|
||||||
tag_format = re.compile(r'.*tag: ([^),]*).*')
|
tag_format = re.compile(r'tag: ([^),]*)')
|
||||||
|
|
||||||
def latesttags(self):
|
def latesttags(self):
|
||||||
self.checkrepo()
|
self.checkrepo()
|
||||||
|
@ -714,10 +714,7 @@ class vcs_git(vcs):
|
||||||
cwd=self.local, output=False)
|
cwd=self.local, output=False)
|
||||||
tags = []
|
tags = []
|
||||||
for line in p.output.splitlines():
|
for line in p.output.splitlines():
|
||||||
m = self.tag_format.match(line)
|
for tag in self.tag_format.findall(line):
|
||||||
if not m:
|
|
||||||
continue
|
|
||||||
tag = m.group(1)
|
|
||||||
tags.append(tag)
|
tags.append(tag)
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue