makechrootpkg: /chrootbuild: accept makepkg_args as arguments rather than embedding.
This commit is contained in:
parent
189efd3bc0
commit
253bb4c8d4
|
@ -190,9 +190,7 @@ EOF
|
||||||
{
|
{
|
||||||
printf '#!/bin/bash\n'
|
printf '#!/bin/bash\n'
|
||||||
declare -f _chrootbuild
|
declare -f _chrootbuild
|
||||||
printf '_chrootbuild'
|
printf '_chrootbuild "$@" || exit\n'
|
||||||
printf ' %q' "${makepkg_args[@]}"
|
|
||||||
printf ' || exit\n'
|
|
||||||
|
|
||||||
if $run_namcap; then
|
if $run_namcap; then
|
||||||
declare -f _chrootnamcap
|
declare -f _chrootnamcap
|
||||||
|
@ -338,7 +336,7 @@ if arch-nspawn "$copydir" \
|
||||||
--bind="$PWD:/startdir" \
|
--bind="$PWD:/startdir" \
|
||||||
--bind="$SRCDEST:/srcdest" \
|
--bind="$SRCDEST:/srcdest" \
|
||||||
"${bindmounts_ro[@]}" "${bindmounts_rw[@]}" \
|
"${bindmounts_ro[@]}" "${bindmounts_rw[@]}" \
|
||||||
/chrootbuild
|
/chrootbuild "${makepkg_args[@]}"
|
||||||
then
|
then
|
||||||
move_products
|
move_products
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue