mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 04:57:38 +00:00
gen-changelog: Handles holding tickets
This commit is contained in:
parent
95fc77277a
commit
462ef6dfa4
@ -76,6 +76,8 @@ for i in tsv:
|
|||||||
security.add(pkg)
|
security.add(pkg)
|
||||||
ticket[pkg] = tic
|
ticket[pkg] = tic
|
||||||
|
|
||||||
|
hold_ticket = {'vim': '4500', 'iana-etc': '5006'}
|
||||||
|
|
||||||
print("Plain Text:")
|
print("Plain Text:")
|
||||||
for (s, act) in [(upd, "Update to "), (add, "Add ")]:
|
for (s, act) in [(upd, "Update to "), (add, "Add ")]:
|
||||||
for i in s:
|
for i in s:
|
||||||
@ -83,6 +85,8 @@ for (s, act) in [(upd, "Update to "), (add, "Add ")]:
|
|||||||
out = act + pkgver
|
out = act + pkgver
|
||||||
if pkgver in ticket:
|
if pkgver in ticket:
|
||||||
out += ' (#' + ticket[pkgver] + ')'
|
out += ' (#' + ticket[pkgver] + ')'
|
||||||
|
elif i in hold_ticket:
|
||||||
|
out += ' (#' + hold_ticket[i] + ')'
|
||||||
print("-", out)
|
print("-", out)
|
||||||
for i in rem:
|
for i in rem:
|
||||||
print("-", "Remove", i)
|
print("-", "Remove", i)
|
||||||
@ -99,10 +103,18 @@ for (s, act) in [(upd, "Update to "), (add, "Add ")]:
|
|||||||
if pkgver in security:
|
if pkgver in security:
|
||||||
out += " (security fix)"
|
out += " (security fix)"
|
||||||
out += "."
|
out += "."
|
||||||
|
|
||||||
|
pkg_ticket = None
|
||||||
if pkgver in ticket:
|
if pkgver in ticket:
|
||||||
out += " Fixes\n "
|
out += " Fixes\n "
|
||||||
out += "<ulink url='&lfs-ticket-root;" + ticket[pkgver] + "'>#"
|
pkg_ticket = ticket[pkgver]
|
||||||
out += ticket[pkgver] + "</ulink>."
|
elif i in hold_ticket:
|
||||||
|
out += " Addresses\n "
|
||||||
|
pkg_ticket = hold_ticket[i]
|
||||||
|
|
||||||
|
if pkg_ticket:
|
||||||
|
out += "<ulink url='&lfs-ticket-root;" + pkg_ticket + "'>#"
|
||||||
|
out += pkg_ticket + "</ulink>."
|
||||||
out += "</para>"
|
out += "</para>"
|
||||||
print(out)
|
print(out)
|
||||||
print(' </listitem>')
|
print(' </listitem>')
|
||||||
|
Loading…
Reference in New Issue
Block a user