fix(changelog): normalize version hyphens to tildes in Debian changelog

This commit is contained in:
2025-12-13 20:26:12 +01:00
parent 1239d67412
commit a38586f52c

View File

@@ -1,6 +1,6 @@
[changelog] [changelog]
body = """\ 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") %} {% for group, commits in commits | group_by(attribute="group") %}
* {{ group | striptags | trim | upper_first }}:\ * {{ group | striptags | trim | upper_first }}:\
{% for commit in commits %} {% for commit in commits %}