aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-internal
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2009-12-14 21:52:28 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2009-12-14 21:52:28 +0900
commitee381669df0f79c23f5ed3c5d4d2f83991e43df3 (patch)
tree2d75644540f740174148fbd5e652e2211da18353 /pdebuild-internal
parent5b2af749e5cb111cbdd278f5d35970905f783f07 (diff)
downloadpbuilder-ee381669df0f79c23f5ed3c5d4d2f83991e43df3.tar
pbuilder-ee381669df0f79c23f5ed3c5d4d2f83991e43df3.tar.gz
fix quoting of debbuildopts to preserve original intention.
Diffstat (limited to 'pdebuild-internal')
-rw-r--r--pdebuild-internal3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdebuild-internal b/pdebuild-internal
index 68f3bd3..46511dc 100644
--- a/pdebuild-internal
+++ b/pdebuild-internal
@@ -118,8 +118,9 @@ useradd -g pbgroup -u "${BUILDRESULTUID}" -d "${HOME}" -o pbuser
executehooks "A"
# do build with that user.
+# $DEBBUILDOPTS is evaluated inside the su and chroot.
export DEBBUILDOPTS
-CMD="/usr/bin/dpkg-buildpackage -rfakeroot -us -uc \${DEBBUILDOPTS}"
+CMD="/usr/bin/dpkg-buildpackage -rfakeroot -us -uc "'${DEBBUILDOPTS}'
echo "I: Running $CMD"
# This command should be ran with current directory as bind-mounted
# package source directory