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:
parent
d2b18fb07a
commit
a93e4fa22a
@ -63,7 +63,7 @@ class ToTestManager(ToolBase.ToolBase):
|
||||
|
||||
def iso_build_version(self, project, tree, repo=None, arch=None):
|
||||
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:
|
||||
return result.group(1)
|
||||
raise NotFoundException("can't find %s iso version" % project)
|
||||
|
Loading…
x
Reference in New Issue
Block a user