From fd2555fa73943a82b844ce6586599e10f3754fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Fri, 13 Aug 2021 18:58:39 +0200 Subject: [PATCH] xbps-src: limit warning on file:/// mirror to related targets --- xbps-src | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index 5e75926c5a..7fe0ac55ff 100755 --- a/xbps-src +++ b/xbps-src @@ -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 }