diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index fea2f952717..76776fabfa0 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}"