archbuild: abort if update or creation of the chroot fails
This commit is contained in:
parent
dbef0b91bf
commit
37bb1d33a7
|
@ -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})..."
|
||||
|
|
Loading…
Reference in New Issue