pkgconfig.req.in: allow pkgconfig names to start with + (ALT#29737)

This commit is contained in:
Дмитрий Левин 2014-02-25 11:51:42 +00:00
parent f5810fbcf0
commit 2992fcc3ab

View File

@ -42,7 +42,8 @@ PkgconfigReqProv()
case "$1" in
*[!A-Za-z0-9_.+-]*)
Fatal "$f: invalid pkg-config output: $line" ;;
[A-Za-z0-9_]*) ;;
[A-Za-z0-9]*) ;;
[_+]*[A-Za-z0-9]*) ;;
*) Fatal "$f: invalid pkg-config output: $line" ;;
esac
if [ $# = 1 ]; then
@ -56,7 +57,8 @@ PkgconfigReqProv()
case "$3" in
*[!A-Za-z0-9_.+-]*)
Fatal "$f: invalid pkg-config output: $line" ;;
[A-Za-z0-9_]*) ;;
[A-Za-z0-9]*) ;;
[_+]*[A-Za-z0-9]*) ;;
*) Fatal "$f: invalid pkg-config output: $line" ;;
esac
echo "pkgconfig($1) $2 $3"