aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-04-01 01:45:36 +0800
committerXi Ruoyao <xry111@xry111.site>2023-04-01 01:45:36 +0800
commitd98496d20c2e1b933cd8b01fdc53996013b204cb (patch)
tree5a2d7bd417b93801109a465d0ff51b55d21dc00c
parent38eab97b1e599a87ac362a386cdf6944b12cf5b4 (diff)
gen-changelog: Mark security fix correctly
-rwxr-xr-xgen-changelog.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gen-changelog.py b/gen-changelog.py
index 91909b254..2932dd9ec 100755
--- a/gen-changelog.py
+++ b/gen-changelog.py
@@ -72,9 +72,9 @@ for i in tsv:
if pos > 0:
pkg = pkg[:pos]
tic = fields[0]
- sec = len(fields) >= 3 and fields[2].startswith("high")
+ if len(fields) >= 3 and fields[2].startswith("high"):
+ security.add(pkg)
ticket[pkg] = tic
- security.add(pkg)
print("Plain Text:")
for (s, act) in [(upd, "Update to "), (add, "Add ")]:
@@ -95,7 +95,10 @@ for (s, act) in [(upd, "Update to "), (add, "Add ")]:
for i in s:
print(' <listitem>')
pkgver = i + "-" + expand_entity(ent, i + "-version")
- out = ' <para>[' + name + '] - ' + act + pkgver + "."
+ out = ' <para>[' + name + '] - ' + act + pkgver
+ if pkgver in security:
+ out += " (security fix)"
+ out += "."
if pkgver in ticket:
out += " Fixes\n "
out += "<ulink url='&lfs-ticket-root;" + ticket[pkgver] + "'>#"