From bffef47d7fbaf7b935ef8db2a7dc1eae776292c0 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Fri, 30 Apr 2021 20:21:22 +1100 Subject: [PATCH] xbps-src/update_check: automatically decompress the content --- 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 2ef29e78f299..0aa5ab7f1a7a 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -85,7 +85,7 @@ update_check() { 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" | + curl --compressed -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$urlpfx" | grep -Po -i "$rx" | # sort -V places 1.1/ before 1/, but 1A/ before 1.1A/ sed -e 's:$:A:' -e 's:/A$:A/:' | sort -Vru | sed -e 's:A/$:/A:' -e 's:A$::' | @@ -171,7 +171,7 @@ update_check() { if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then 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" | + curl --compressed -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" fetchedurls[$url]=yes done |