aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-internal
diff options
context:
space:
mode:
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