change log for version 4.5.1; improved changelog update script

This commit is contained in:
Victor Kirhenshtein 2024-01-30 10:18:19 +02:00
parent 8dcb39c27b
commit 312bd62fe2
2 changed files with 29 additions and 5 deletions

View file

@ -1,3 +1,24 @@
netxms (4.5.1-1) stable; urgency=medium
* Driver for Edgecore enterprise switches
* Driver for HPE Aruba Networking switches and wireless controllers
* Chart height in performance view automatically adjusted to accomodate large legend
* New NXSL class "MacAddress"
* Attribute "state" of NXSL class "AccessPoint" renamed to "apState" (to avoid conflict with attribute "state" from parent class)
* Context object views can be hidden
* Configurable timeout for client session first packet
* Improved VLAN handling by generic driver
* Updated Eltex driver
* Fix missing object synchronization for ad-hock maps (drill down)
* Fixed server crash when interface list cannot be read from SNMP device and option to ignore interfaces in NOT PRESENT state is on
* Fixed bug in EPP rule copying
* Fixed line numbering bug in desktop UI script editor
* Fixed issues:
* NX-2491 (Add alarm category attribute to NXSL alarm class)
* NX-2493 (Activation / Deactivation event not shown in threshold editor)
-- Alex Kirhenshtein <alk@netxms.org> Tue, 30 Jan 2024 10:17:05 +0200
netxms (4.5.0-1) stable; urgency=medium
* XPath can be used for querying XML-based web services

View file

@ -16,27 +16,30 @@ from debian.changelog import Changelog
def read_netxms_changelog(input_lines: List[str]) -> Dict[str, List[str]]:
changelog: Dict[str, List[str]] = {}
version = "UNKNOWN"
padding = ""
for line in input_lines:
if line == "":
continue
if line.strip() == "*":
continue
m = re.match(r"^\* ([0-9.]+(-CURRENT)?)", line)
m = re.match(r"^\# ([0-9.]+(-SNAPSHOT)?)", line)
if m:
padding = ""
version = m.group(1)
if version not in changelog:
v: List[str] = []
changelog[version] = v
if line.startswith("## Fixed issues"):
changelog[version].append(" * Fixed issues:")
padding = " "
if line[0] == "-":
changelog[version].append(" * " + line[2:].strip())
if line[0] == "\t":
changelog[version].append(" * " + line[1:].strip())
changelog[version].append(" * " + padding + line[2:].strip())
return changelog
version = sys.argv[1]
text = requests.get('https://raw.githubusercontent.com/netxms/changelog/master/ChangeLog').text.splitlines()
text = requests.get('https://raw.githubusercontent.com/netxms/changelog/master/ChangeLog.md').text.splitlines()
new_changes = read_netxms_changelog(text)[version]
with open('changelog', 'r') as f: