Closed issue by unspecd on void-packages repository https://github.com/void-linux/void-packages/issues/29429 Description: ### Steps to reproduce the behavior ```console $ ./xbps-src update-check llvm11 NO VERSION found for llvm11 ``` ```console $ curl https://releases.llvm.org Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: " to save to a file. $ curl -sI https://releases.llvm.org | grep encoding content-encoding: gzip ``` ### Possible solution File: common/xbps-src/shutils/update_check.sh. ```diff @@ -85,7 +85,7 @@ update_check() { echo "(folder) fetching $urlpfx" 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" 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 | ```