ubuntu-bugcontrol team mailing list archive
-
ubuntu-bugcontrol team
-
Mailing list archive
-
Message #04718
[Merge] ~jslarraz/ubuntu-qa-tools:fix-find-latest-release-iso into ubuntu-qa-tools:master
Jorge Sancho Larraz has proposed merging ~jslarraz/ubuntu-qa-tools:fix-find-latest-release-iso into ubuntu-qa-tools:master.
Commit message:
find_latest_release assumed the iso name to be x.x.x what is not true for the first version on every release. Fixing regular expression
Requested reviews:
Ubuntu Bug Control (ubuntu-bugcontrol)
For more details, see:
https://code.launchpad.net/~jslarraz/ubuntu-qa-tools/+git/ubuntu-qa-tools/+merge/465786
--
Your team Ubuntu Bug Control is requested to review the proposed merge of ~jslarraz/ubuntu-qa-tools:fix-find-latest-release-iso into ubuntu-qa-tools:master.
diff --git a/vm-tools/uvt b/vm-tools/uvt
index 36a3c31..ef7b8ba 100755
--- a/vm-tools/uvt
+++ b/vm-tools/uvt
@@ -3029,7 +3029,7 @@ def find_latest_release(release_num, iso_type):
print("Could not reach web server! Please download manually.")
sys.exit(1)
- matches = re.findall(re.escape(release_num) + r"\.\d+", html)
+ matches = re.findall(re.escape(release_num) + r"(?:\.\d+)?", html)
if len(matches) > 0:
latest_release = sorted(matches)[-1]
print("Found release %s" % latest_release)
Follow ups