From a38586f52c48a830a8c8a5eda25a50eed40a782f Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sat, 13 Dec 2025 20:26:12 +0100 Subject: [PATCH] fix(changelog): normalize version hyphens to tildes in Debian changelog --- configs/cliff.debian.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/cliff.debian.toml b/configs/cliff.debian.toml index 0f08a57..847c438 100644 --- a/configs/cliff.debian.toml +++ b/configs/cliff.debian.toml @@ -1,6 +1,6 @@ [changelog] body = """\ -{{ get_env(name="PACKAGE_NAME") }} ({% if version %}{{ version | trim_start_matches(pat="v") }}{% else %}0.0.0-1{% endif %}) unstable; urgency=medium\ +{{ get_env(name="PACKAGE_NAME") }} ({% if version %}{{ version | replace(from="-", to="~") | trim_start_matches(pat="v") }}{% else %}0.0.0-1{% endif %}) unstable; urgency=medium\ {% for group, commits in commits | group_by(attribute="group") %} * {{ group | striptags | trim | upper_first }}:\ {% for commit in commits %} @@ -8,7 +8,7 @@ body = """\ {% endfor %}\ {% endfor %} - -- {{ get_env(name="AUTHOR_NAME") }} <{{ get_env(name="AUTHOR_EMAIL") }}> {% if version %}{{ now() | date(format="%a, %d %b %Y %H:%M:%S %z") }}{% else %}{{ now() | date(format="%a, %d %b %Y %H:%M:%S %z") }}{% endif %} + -- {{ get_env(name="AUTHOR_NAME") }} <{{ get_env(name="AUTHOR_EMAIL") }}> {% if version %}{{ now() | date(format="%a, %d %b %Y %H:%M:%S %z") }}{% else %}{{ now() | date(format="%a, %d %b %Y %H:%M:%S %z") }}{% endif %} """