xbps-src/shutils/update-check.sh: accept RSS MIME type

This fixes update-check for sourceforge.net.
This commit is contained in:
newbluemoon 2018-10-02 07:54:14 +02:00 committed by Enno Boland
parent 4ada4eac43
commit de83d6fdb1
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,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' -A "xbps-src-update-check/$XBPS_SRC_VERSION" --max-time 10 -Lsk "$url" |
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"
done |
tr _ . |