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

View file

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