diff options
author | Justin Davis <jrcd83@gmail.com> | 2011-08-30 19:33:07 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2011-08-30 19:35:52 +0200 |
commit | f024964f207baaa22fb2fccf9e702c9704f6405c (patch) | |
tree | 75e1ed70443d8c7547f75dcfd6cf8184a7c03e0d /bin/templ/pbfields | |
parent | 8d29d5ce9eef0fecf8482cbb12bc0afb007f67ac (diff) | |
download | genpkg-f024964f207baaa22fb2fccf9e702c9704f6405c.tar.gz genpkg-f024964f207baaa22fb2fccf9e702c9704f6405c.tar.xz |
Fix quoting problems in pkgdesc and dquote source.
Diffstat (limited to 'bin/templ/pbfields')
-rwxr-xr-x | bin/templ/pbfields | 6 |
1 files changed, 5 insertions, 1 deletions
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) } |