ttm/manager.py: Also find versions from plain tarballs

It already handled .docker.tar.xz, add plain tar.xz as well.
This commit is contained in:
Fabian Vogt 2021-06-18 14:03:48 +02:00
parent d2b18fb07a
commit a93e4fa22a

View File

@ -63,7 +63,7 @@ class ToTestManager(ToolBase.ToolBase):
def iso_build_version(self, project, tree, repo=None, arch=None): def iso_build_version(self, project, tree, repo=None, arch=None):
for binary in self.binaries_of_product(project, tree, repo=repo, arch=arch): for binary in self.binaries_of_product(project, tree, repo=repo, arch=arch):
result = re.match(r'.*-(?:Build|Snapshot)([0-9.]+)(?:-Media.*\.iso|\.docker\.tar\.xz|\.raw\.xz|\.appx)', binary) result = re.match(r'.*-(?:Build|Snapshot)([0-9.]+)(?:-Media.*\.iso|\.docker\.tar\.xz|\.tar\.xz|\.raw\.xz|\.appx)', binary)
if result: if result:
return result.group(1) return result.group(1)
raise NotFoundException("can't find %s iso version" % project) raise NotFoundException("can't find %s iso version" % project)