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.
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()
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)
- tags.append(tag)
+ for tag in self.tag_format.findall(line):
+ tags.append(tag)
return tags