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