xbps-src: don't check if base-chroot is installed for every single sourced template

This commit is contained in:
Duncaen 2019-06-12 23:50:19 +02:00 committed by Juan RP
parent 5171ed4a50
commit 723170541d
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368

View file

@ -372,12 +372,9 @@ setup_pkg() {
esac
# Check if base-chroot is already installed.
if [ -z "$bootstrap" -a "z$show_problems" != "zignore-problems" ]; then
check_installed_pkg base-chroot-0.1_1
if [ $? -ne 0 ]; then
msg_red "${pkg} is not a bootstrap package and cannot be built without it.\n"
msg_error "Please install bootstrap packages and try again.\n"
fi
if [ -z "$bootstrap" -a -z "$CHROOT_READY" -a "z$show_problems" != "zignore-problems" ]; then
msg_red "${pkg} is not a bootstrap package and cannot be built without it.\n"
msg_error "Please install bootstrap packages and try again.\n"
fi
sourcepkg="${pkgname}"