From 723170541d7f242882c9cce7ac1a2dd3c811e98a Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 12 Jun 2019 23:50:19 +0200 Subject: [PATCH] xbps-src: don't check if base-chroot is installed for every single sourced template --- common/xbps-src/shutils/common.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index fea2f95271..76776fabfa 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -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}"