Changeset 462ef6d


Ignore:
Timestamp:
12/30/2023 05:09:57 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
d4ce302c
Parents:
95fc772
git-author:
Xi Ruoyao <xry111@…> (12/30/2023 05:06:22 PM)
git-committer:
Xi Ruoyao <xry111@…> (12/30/2023 05:09:57 PM)
Message:

gen-changelog: Handles holding tickets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gen-changelog.py

    r95fc772 r462ef6d  
    7777        ticket[pkg] = tic
    7878
     79hold_ticket = {'vim': '4500', 'iana-etc': '5006'}
     80
    7981print("Plain Text:")
    8082for (s, act) in [(upd, "Update to "), (add, "Add ")]:
     
    8486        if pkgver in ticket:
    8587            out += ' (#' + ticket[pkgver] + ')'
     88        elif i in hold_ticket:
     89            out += ' (#' + hold_ticket[i] + ')'
    8690        print("-", out)
    8791for i in rem:
     
    100104            out += " (security fix)"
    101105        out += "."
     106
     107        pkg_ticket = None
    102108        if pkgver in ticket:
    103109            out += "  Fixes\n          "
    104             out += "<ulink url='&lfs-ticket-root;" + ticket[pkgver] + "'>#"
    105             out += ticket[pkgver] + "</ulink>."
     110            pkg_ticket = ticket[pkgver]
     111        elif i in hold_ticket:
     112            out += "  Addresses\n          "
     113            pkg_ticket = hold_ticket[i]
     114
     115        if pkg_ticket:
     116            out += "<ulink url='&lfs-ticket-root;" + pkg_ticket + "'>#"
     117            out += pkg_ticket + "</ulink>."
    106118        out += "</para>"
    107119        print(out)
Note: See TracChangeset for help on using the changeset viewer.