From e2708d93450968f952ff254825e79da9ab246853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Wed, 19 Aug 2015 23:49:55 +0200 Subject: [PATCH] archbuild: Override default makechrootpkg args As we don't have a way to remove arguments, we need to be able to override default arguments given to makechrootpkg. In particular to remove the -c argument which "clean" the /copy chroot, to have a fast rebuild path to packages. This speed up a lot multiple testing build --- archbuild.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archbuild.in b/archbuild.in index cdfca59..ae4be81 100644 --- a/archbuild.in +++ b/archbuild.in @@ -45,8 +45,8 @@ done check_root "$0" "${orig_argv[@]}" -# Pass all arguments after -- right to makepkg -makechrootpkg_args+=("${@:$OPTIND}") +# Override default makechrootpkg arguments when specified +[[ -n ${@:$OPTIND} ]] && makechrootpkg_args=("${@:$OPTIND}") if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then msg "Creating chroot for [${repo}] (${arch})..." -- GitLab