[packages/rpm-build-tools] - escape percent in changelog to prevent rpm interpreting it as macro
baggins
baggins at pld-linux.org
Sun Jul 12 01:46:28 CEST 2026
commit b4e192cef0f232aa7ebcef2a0eef9817133627f1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Jul 12 01:45:05 2026 +0200
- escape percent in changelog to prevent rpm interpreting it as macro
builder.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index e44c4a6..e0a474a 100755
--- a/builder.sh
+++ b/builder.sh
@@ -539,7 +539,7 @@ insert_gitlog() {
git rev-list --date-order -${log_entries:-20} HEAD 2>/dev/null | while read sha1; do
local logfmt='%B%n'
git notes list $sha1 > /dev/null 2>&1 && logfmt='%N'
- git log -n 1 $sha1 --format=format:"* %ad %an <%ae> %h%n- ${logfmt}%n" --date=raw | sed -re 's/^- +- */- /'| sed '/^$/q'
+ git log -n 1 $sha1 --format=format:"* %ad %an <%ae> %h%n- ${logfmt}%n" --date=raw | sed -re 's/^- +- */- /' -e 's/%/%%/g' | sed '/^$/q'
done > $gitlog
# add link to full git logs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/de8f581486c0946d64776fb736b57cb292dc18a2
More information about the pld-cvs-commit
mailing list