From f024964f207baaa22fb2fccf9e702c9704f6405c Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Tue, 30 Aug 2011 13:33:07 -0400 Subject: Fix quoting problems in pkgdesc and dquote source. --- bin/templ/pbfields | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/templ/pbfields') diff --git a/bin/templ/pbfields b/bin/templ/pbfields index 6aa72a9..f0a2ff7 100755 --- a/bin/templ/pbfields +++ b/bin/templ/pbfields @@ -23,8 +23,12 @@ $1 ~ /depends$|conflicts|provides/ { for (i=2; i<=NF; i++) $i = sprintf("'%s'", $i) } +$1 == "source" { + for (i=2; i<=NF; i++) $i = sprintf("\"%s\"", $i) +} + $1 == "pkgdesc" { - gsub(/[$"`]/, "\\&", $2) + gsub(/[$"`]/, "\\\\&", $2) $2 = sprintf("\"%s\"", $2) } -- cgit v1.2.3-24-g4f1b