mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
fixup! common/xbps-src/shutils: suggest binary-bootstrapping if uninit'd
This commit is contained in:
parent
28bb8ec97a
commit
bc2d185fd9
1 changed files with 7 additions and 3 deletions
|
@ -502,9 +502,13 @@ setup_pkg() {
|
||||||
# Check if base-chroot is already installed.
|
# Check if base-chroot is already installed.
|
||||||
if [ -z "$bootstrap" -a -z "$CHROOT_READY" -a "z$show_problems" != "zignore-problems" ]; then
|
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_red "${pkg} is not a bootstrap package and cannot be built without it.\n"
|
||||||
msg_normal "Would you like to binary-bootstrap for ${XBPS_MACHINE} in ${XBPS_MASTERDIR}?"
|
# if this isn't a script, ask to bootstrap
|
||||||
read -rp " [Y/n] " _bin_bootstrap_resp
|
if [ -t 1 ]; then
|
||||||
if [ -z "$_bin_bootstrap_resp" ] || [ "${_bin_bootstrap_resp,,}" = "y" ]; then
|
msg_normal "Would you like to binary-bootstrap for ${XBPS_MACHINE} in ${XBPS_MASTERDIR}?"
|
||||||
|
read -rp " [Y/n] " _bin_bootstrap_resp
|
||||||
|
[ -z "$_bin_bootstrap_resp" ] && _bin_bootstrap_resp=y
|
||||||
|
fi
|
||||||
|
if [ "${_bin_bootstrap_resp,,}" = "y" ]; then
|
||||||
msg_normal "binary bootstrapping for ${XBPS_MACHINE} in ${XBPS_MASTERDIR}...\n"
|
msg_normal "binary bootstrapping for ${XBPS_MACHINE} in ${XBPS_MASTERDIR}...\n"
|
||||||
install_base_chroot "$XBPS_MACHINE"
|
install_base_chroot "$XBPS_MACHINE"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue