Commit e2708d93 authored by Seblu's avatar Seblu
Browse files

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 <chrootdir>/copy chroot, to have a fast rebuild
path to packages.

This speed up a lot multiple testing build
parent cc61bb84
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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})..."