update-check: never omit specified site

This commit is contained in:
Piotr Wójcik 2019-04-29 10:23:15 +02:00 committed by Enno Boland
parent 067b391fa4
commit bb0b85060c
1 changed files with 3 additions and 4 deletions

View File

@ -31,6 +31,8 @@ update_check() {
# filter loop: if version are "folder" name based,
# substitute original url by every folder based ones (expand)
while IFS= read -r url; do
# default case: don't rewrite url
printf '%s\n' "$url"
rx=
urlpfx="${url}"
urlsfx=
@ -45,10 +47,7 @@ update_check() {
rx='href="\K[\d\.]+(?=/")'
;;
esac
if [ -z "$rx" ]; then
# default case: don't rewrite url
printf '%s\n' "$url"
else
if [ "$rx" ]; then
# substitute url if needed
if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then
echo "(folder) fetching $urlpfx" 1>&2