1
0
mirror of https://passt.top/passt synced 2024-06-29 22:42:46 +00:00

fedora: Escape % characters in spec file's changelog

...rpmbuild otherwise expands valid macro names in changelog entries.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-09-06 23:02:01 +02:00
parent e5e10aff81
commit e2cae8f1c3

View File

@ -36,7 +36,7 @@ function passt_git_changelog_entry {
IFS='
'
for l in $(git log ${__from}..${__to} --pretty=format:"- %s" -- contrib/fedora); do
printf "%s%s\n" '-' "${l#*:}"
printf "%s%s\n" '-' "${l#*:}" | sed s/%/%%/g
done
unset IFS