diff --git a/bin/buildpkg.in b/bin/buildpkg.in index 5d147ca..fc5942b 100644 --- a/bin/buildpkg.in +++ b/bin/buildpkg.in @@ -164,7 +164,8 @@ pacman_conf="${PKGDATADIR}/pacman-${pacman_conf_arch}.conf" makepkg_conf="${PKGDATADIR}/makepkg-${arch}.conf" mirrors_conf="${PKGDATADIR}/pacman-mirrors-${branch}.conf" -mkchroot_args+=(-C ${pacman_conf} -M ${makepkg_conf} -S ${mirrors_conf} -B "${build_mirror}/${branch}" -L) +chroot_run_args+=(-C ${pacman_conf} -M ${makepkg_conf} -S ${mirrors_conf} -B "${build_mirror}/${branch}") +mkchroot_args+=(${chroot_run_args} -L) mkchrootpkg_args+=(-r ${work_dir}) diff --git a/lib/util-pkg.sh b/lib/util-pkg.sh index d4bfec4..14f93c8 100644 --- a/lib/util-pkg.sh +++ b/lib/util-pkg.sh @@ -54,7 +54,7 @@ chroot_clean(){ chroot_update(){ msg "Updating chroot for [${branch}] (${arch})..." - chroot-run ${mkchroot_args[*]} \ + chroot-run ${chroot_run_args[*]} \ "${work_dir}/${OWNER}" \ pacman -Syu --noconfirm || abort