]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: release-estimator: fix relative scheme in CHANGELOG URL
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 13 Aug 2024 14:43:03 +0000 (16:43 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 13 Aug 2024 14:43:03 +0000 (16:43 +0200)
The CHANGELOG URL which is parsed in the HTML now have a relative
scheme, which is incompatible with requests. This patch adds an https
scheme to the URL.

admin/release-estimator/release-estimator.py

index bf005df3faf62901842bbd2bde055dbe1f664f57..e113bffcbd77fa7c6a4f7d3a098375472b4cdfba 100755 (executable)
@@ -16,6 +16,7 @@
 #
 
 from lxml import html
+from urllib.parse import urljoin
 import requests
 import traceback
 import smtplib
@@ -190,6 +191,7 @@ This is a friendly bot that watches fixes pending for the next haproxy-stable re
 
         # parse out the CHANGELOG link
         CHANGELOG = tree.xpath('//a[contains(@href,"CHANGELOG")]/@href')[0]
+        CHANGELOG = urljoin("https://", CHANGELOG)
 
         last_version = tree.xpath('//td[contains(text(), "last")]/../td/a/text()')[0]
         first_version = "%s.0" % (version)