Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbartoszek <bartoszek.github@bartus.33mail.com>2020-03-10 12:02:24 +0100
committerLevente Polyak <anthraxx@archlinux.org>2021-01-26 20:43:29 +0100
commit4f305aa31605de1171558edad58c413d2a47b5e7 (patch)
tree991e206369f9e0e3bb7d8fb2433085cdd2ee6a41
parent09e169b7418319eadfc4eab83fbf2fcc459d536e (diff)
makechrootpkg: Expose failed build logs/products
Since move_products() function is fairly robust we can make it run for failed build also to expose logs for packages that fails in build(), prepare() or package(). It also exposes partially packaged split packages if they fail in latter package_xxx().
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index bfa69be..9897eba 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -367,10 +367,10 @@ if arch-nspawn "$copydir" \
/chrootbuild "${makepkg_args[@]}"
then
mapfile -t pkgnames < <(sudo -u "$makepkg_user" bash -c 'source PKGBUILD; printf "%s\n" "${pkgname[@]}"')
- move_products
else
(( ret += 1 ))
fi
+move_products
(( temp_chroot )) && delete_chroot "$copydir" "$copy"