From 312bd62fe2cf18160677f0d0d1b8c89ebc104510 Mon Sep 17 00:00:00 2001 From: Victor Kirhenshtein Date: Tue, 30 Jan 2024 10:18:19 +0200 Subject: [PATCH] change log for version 4.5.1; improved changelog update script --- changelog | 21 +++++++++++++++++++++ update_changelog.py | 13 ++++++++----- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/changelog b/changelog index 768bb04..13a432d 100644 --- a/changelog +++ b/changelog @@ -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 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 diff --git a/update_changelog.py b/update_changelog.py index a7fb705..14ab8d2 100755 --- a/update_changelog.py +++ b/update_changelog.py @@ -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: