summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-04-02 04:09:58 -0400
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-04-05 22:14:19 +0200
commit253bb4c8d4019d17f83632a196e233fa10e2bf9e (patch)
tree8606dc8f2415e8d73df366343289ba3d9b3569c2 /makechrootpkg.in
parent189efd3bc0b4fe87aae088b6c46ebb8a172caf28 (diff)
makechrootpkg: /chrootbuild: accept makepkg_args as arguments rather than embedding.
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 31d57d3..9566b2e 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -190,9 +190,7 @@ EOF
{
printf '#!/bin/bash\n'
declare -f _chrootbuild
- printf '_chrootbuild'
- printf ' %q' "${makepkg_args[@]}"
- printf ' || exit\n'
+ printf '_chrootbuild "$@" || exit\n'
if $run_namcap; then
declare -f _chrootnamcap
@@ -338,7 +336,7 @@ if arch-nspawn "$copydir" \
--bind="$PWD:/startdir" \
--bind="$SRCDEST:/srcdest" \
"${bindmounts_ro[@]}" "${bindmounts_rw[@]}" \
- /chrootbuild
+ /chrootbuild "${makepkg_args[@]}"
then
move_products
else