From 4f305aa31605de1171558edad58c413d2a47b5e7 Mon Sep 17 00:00:00 2001 From: bartoszek Date: Tue, 10 Mar 2020 12:02:24 +0100 Subject: 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(). --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makechrootpkg.in') 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" -- cgit v1.2.3-70-g09d2