common/xbps-src/shutils/common: give better error if masterdir isn't init'd

so many people ask how to fix this error, especially now that `-a`
implies the matching libc's `-A`, so let's make it more clear
This commit is contained in:
classabbyamp 2025-07-20 13:10:35 -04:00
parent e025dba78c
commit e7e9fe1b7e
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5

View file

@ -502,7 +502,7 @@ setup_pkg() {
# Check if base-chroot is already installed.
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"
msg_error "Please run '${PROGNAME} -A ${XBPS_MACHINE} binary-bootstrap' or install bootstrap packages, then try again.\n"
fi
sourcepkg="${pkgname}"