makepkg: error on invalid optdepends

Missed in commit a88cb03a.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2011-02-03 10:15:36 +10:00 committed by Dan McGee
parent d8c4b12c66
commit 35a8cf134b
1 changed files with 1 additions and 0 deletions

View File

@ -1281,6 +1281,7 @@ check_sanity() {
local pkg=${i%%:*}
if [[ ! $pkg =~ ^[[:alnum:]\>\<\=\.\+\_\-]+$ ]]; then
error "$(gettext "Invalid syntax for optdepend : '%s'")" "$i"
ret=1
fi
done