Commit 37bb1d33 authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

archbuild: abort if update or creation of the chroot fails

parent dbef0b91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,13 +61,13 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
		-C "@pkgdatadir@/pacman-${repo}.conf" \
		-M "@pkgdatadir@/makepkg-${arch}.conf" \
		"${chroots}/${repo}-${arch}/root" \
		"${base_packages[@]}"
		"${base_packages[@]}" || abort
else
	setarch ${arch} mkarchroot \
		-u \
		-C "@pkgdatadir@/pacman-${repo}.conf" \
		-M "@pkgdatadir@/makepkg-${arch}.conf" \
		"${chroots}/${repo}-${arch}/root"
		"${chroots}/${repo}-${arch}/root" || abort
fi

msg "Building in chroot for [${repo}] (${arch})..."