update-check: never omit specified site
This commit is contained in:
parent
067b391fa4
commit
bb0b85060c
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue