update_check.sh: escape pkgname in default regexp.
This commit is contained in:
parent
ebbb33b519
commit
01646ec643
@ -42,7 +42,7 @@ update_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rx=${update_pattern:-$rx}
|
rx=${update_pattern:-$rx}
|
||||||
rx=${rx:-'(?<!-)\b'"$update_pkgname"'[-_]?((src|source)[-_])?\K([^-/_\s]*?\d[^-/_\s]*?)(?=(?:[-_.](?:src|source|orig))?\.(?:[jt]ar|shar|t[bglx]z|tbz2|zip))\b'}
|
rx=${rx:-'(?<!-)\b\Q'"$update_pkgname"'\E[-_]?((src|source)[-_])?\K([^-/_\s]*?\d[^-/_\s]*?)(?=(?:[-_.](?:src|source|orig))?\.(?:[jt]ar|shar|t[bglx]z|tbz2|zip))\b'}
|
||||||
|
|
||||||
if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then
|
if [ -n "$XBPS_UPDATE_CHECK_VERBOSE" ]; then
|
||||||
echo "fetching $url" 1>&2
|
echo "fetching $url" 1>&2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user