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().
This commit is contained in:
bartoszek 2020-03-10 12:02:24 +01:00 committed by Levente Polyak
parent 09e169b741
commit 4f305aa316
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 1 additions and 1 deletions

View File

@ -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"