summaryrefslogtreecommitdiffstats
path: root/bin/templ/pbfields
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-08-30 19:33:07 +0200
committerJustin Davis <jrcd83@gmail.com>2011-08-30 19:35:52 +0200
commitf024964f207baaa22fb2fccf9e702c9704f6405c (patch)
tree75e1ed70443d8c7547f75dcfd6cf8184a7c03e0d /bin/templ/pbfields
parent8d29d5ce9eef0fecf8482cbb12bc0afb007f67ac (diff)
downloadgenpkg-f024964f207baaa22fb2fccf9e702c9704f6405c.tar.gz
genpkg-f024964f207baaa22fb2fccf9e702c9704f6405c.tar.xz
Fix quoting problems in pkgdesc and dquote source.
Diffstat (limited to 'bin/templ/pbfields')
-rwxr-xr-xbin/templ/pbfields6
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)
}