xbps-src: limit warning on file:/// mirror to related targets

This commit is contained in:
Piotr Wójcik 2021-08-13 18:58:39 +02:00 committed by Piotr
parent cd01d78d8f
commit fd2555fa73
1 changed files with 4 additions and 1 deletions

View File

@ -337,7 +337,10 @@ setup_distfiles_mirror() {
mkdir -p "$XBPS_MASTERDIR/$path"
XBPS_CHROOT_CMD_ARGS+=" -b $path:$path"
else
msg_warn "xbps-src: File URLs ($mirror) don't work with '$XBPS_CHROOT_CMD'\n"
case "$XBPS_TARGET" in
fetch|extract|patch|configure|build|check|install|pkg|bootstrap|bootstrap-update|update-sys)
msg_warn "xbps-src: File URLs ($mirror) don't work with '$XBPS_CHROOT_CMD'\n"
esac
fi
done
}