ubuntu-bugcontrol team mailing list archive
-
ubuntu-bugcontrol team
-
Mailing list archive
-
Message #04594
[Merge] ~sespiros/ubuntu-qa-tools/+git/ubuntu-qa-tools:fix-trusty into ubuntu-qa-tools:master
Spyros Seimenis has proposed merging ~sespiros/ubuntu-qa-tools/+git/ubuntu-qa-tools:fix-trusty into ubuntu-qa-tools:master.
Requested reviews:
Ubuntu Bug Control (ubuntu-bugcontrol)
For more details, see:
https://code.launchpad.net/~sespiros/ubuntu-qa-tools/+git/ubuntu-qa-tools/+merge/411863
Fixes the following case:
uvt new trusty amd64 test
This commit is also part of https://code.launchpad.net/~sespiros/ubuntu-qa-tools/+git/ubuntu-qa-tools/+merge/409517 which was partially merged (the xenial case fix).
--
Your team Ubuntu Bug Control is requested to review the proposed merge of ~sespiros/ubuntu-qa-tools/+git/ubuntu-qa-tools:fix-trusty into ubuntu-qa-tools:master.
diff --git a/vm-tools/uvt b/vm-tools/uvt
index 6ca51e7..4a3f4a9 100755
--- a/vm-tools/uvt
+++ b/vm-tools/uvt
@@ -2915,7 +2915,7 @@ def find_latest_release(release_num, iso_type):
matches = []
for line in text:
if line.startswith(' ' + release_num):
- matches.append(line[0:].split('/')[0][1:])
+ matches.append(re.search(r'\d+\.\d+(\.\d+)? ', line).group().strip())
if len(matches) > 0:
latest_release = sorted(matches)[-1]
Follow ups