diff --git a/releases/custom/haproxy.json b/releases/custom/haproxy.json new file mode 100644 index 00000000..fff9a618 --- /dev/null +++ b/releases/custom/haproxy.json @@ -0,0 +1,77 @@ +{ + "2021-11-23": "2.5.0", + "2021-05-14": "2.4.0", + "2020-11-05": "2.3.0", + "2020-07-07": "2.2.0", + "2019-11-25": "2.1.0", + "2019-06-16": "2.0.0", + "2018-12-19": "1.9.0", + "2017-11-26": "1.8.0", + "2016-11-25": "1.7.0", + "2015-10-13": "1.6.0", + "2014-06-19": "1.5.0", + "2010-05-16": "1.4.6", + "2010-05-13": "1.4.5", + "2010-04-07": "1.4.4", + "2010-03-30": "1.4.3", + "2010-03-17": "1.4.2", + "2010-03-04": "1.4.1", + "2010-02-26": "1.4.0", + "2009-05-10": "1.3.18", + "2009-03-29": "1.3.17", + "2009-03-22": "1.3.16", + "2008-04-19": "1.3.15", + "2007-12-06": "1.3.14", + "2007-10-18": "1.3.13", + "2007-06-17": "1.3.12", + "2007-05-14": "1.3.11", + "2007-05-08": "1.3.10", + "2007-04-15": "1.3.9", + "2007-03-25": "1.3.8", + "2007-01-26": "1.3.7", + "2007-01-22": "1.3.6", + "2007-01-07": "1.3.5", + "2007-01-02": "1.3.4", + "2006-10-15": "1.3.3", + "2006-09-03": "1.3.2", + "2006-06-29": "1.3.0", + "2006-05-21": "1.2.14", + "2006-05-13": "1.2.13", + "2006-04-15": "1.2.12", + "2006-03-25": "1.2.11", + "2006-03-19": "1.2.10", + "2006-03-15": "1.2.9", + "2006-01-29": "1.2.8", + "2005-11-13": "1.2.7", + "2005-08-07": "1.2.6", + "2005-01-22": "1.2.4", + "2003-11-09": "1.2.0", + "2003-10-27": "1.1.27", + "2003-10-22": "1.1.26", + "2003-10-15": "1.1.25", + "2003-09-21": "1.1.24", + "2003-09-19": "1.1.23", + "2003-09-10": "1.1.22", + "2003-05-06": "1.1.21", + "2003-04-21": "1.1.20", + "2003-04-16": "1.1.19", + "2003-04-02": "1.1.18", + "2002-10-18": "1.1.17", + "2002-09-01": "1.1.16", + "2002-08-07": "1.1.15", + "2002-07-20": "1.1.14", + "2002-07-15": "1.1.13", + "2002-07-13": "1.1.12", + "2002-06-04": "1.1.11", + "2002-05-10": "1.1.10", + "2002-04-19": "1.1.9", + "2002-04-18": "1.1.8", + "2002-04-12": "1.1.7", + "2002-04-08": "1.1.6", + "2002-04-03": "1.1.5", + "2002-03-25": "1.1.4", + "2002-03-22": "1.1.3", + "2002-03-21": "1.1.2", + "2002-03-12": "1.1.1", + "2002-03-10": "1.1.0" +} \ No newline at end of file diff --git a/src/haproxy.py b/src/haproxy.py new file mode 100644 index 00000000..7cd4c3a6 --- /dev/null +++ b/src/haproxy.py @@ -0,0 +1,18 @@ +import json +import re +import urllib.request + +URL = "https://www.haproxy.org/download/2.6/src/CHANGELOG" +REGEX = r'^(\d{4})\/(\d{2})\/(\d{2})\s+:\s+(\d+\.\d+\.\d.?)$' + +list = {} +with urllib.request.urlopen(URL) as response: + for line in response: + m = re.match(REGEX, line.decode('utf-8')) + if m: + year,month,date,version = m.groups() + abs_date = "%s-%s-%s" % (year, month, date) + list[abs_date] = version + +with open('releases/custom/haproxy.json', 'w') as f: + f.write(json.dumps(list, indent=2)) diff --git a/update.rb b/update.rb index 89c41a36..1ccac8c0 100644 --- a/update.rb +++ b/update.rb @@ -105,6 +105,7 @@ def get_releases(product, config, i) return get_releases_from_git(dir, config) else puts "Not implemented: #{type}" + return {} end end