summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-10-03 12:32:03 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-10-03 12:32:03 +0200
commit37bb1d33a78130743bda3e4a0bdde3768e2b6062 (patch)
tree70863f0a5a004e684d67e99ee65ac38887a629f7
parentdbef0b91bf6d0b6d4cc858065f167379fee97156 (diff)
archbuild: abort if update or creation of the chroot fails
-rw-r--r--archbuild.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/archbuild.in b/archbuild.in
index c39760e..00234f3 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -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})..."