update_check.sh: escape pkgname in default regexp.

This commit is contained in:
Christian Neukirchen 2014-11-02 15:54:08 +01:00
parent ebbb33b519
commit 01646ec643
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ update_check() {
fi
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
echo "fetching $url" 1>&2