From 047acc97d8cf72e0659f661b88c1f4f800d1393d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 13 Apr 2021 22:46:19 +0200 Subject: [PATCH] xbps-src: update-check: print out match pattern in verbose mode --- common/xbps-src/shutils/update_check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 3cbbfe95c2ac..2ef29e78f299 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -82,7 +82,7 @@ update_check() { if [ "$rx" ]; then # substitute url if needed if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then - echo "(folder) fetching $urlpfx" 1>&2 + echo "(folder) fetching $urlpfx and scanning with $rx" 1>&2 fi skipdirs= curl -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$urlpfx" | @@ -169,7 +169,7 @@ update_check() { fi if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then - echo "fetching $url" 1>&2 + echo "fetching $url and scanning with $rx" 1>&2 fi curl -H 'Accept: text/html,application/xhtml+xml,application/xml,text/plain,application/rss+xml' -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" | grep -Po -i "$rx"