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:
parent
d8c4b12c66
commit
35a8cf134b
1 changed files with 1 additions and 0 deletions
|
@ -1281,6 +1281,7 @@ check_sanity() {
|
||||||
local pkg=${i%%:*}
|
local pkg=${i%%:*}
|
||||||
if [[ ! $pkg =~ ^[[:alnum:]\>\<\=\.\+\_\-]+$ ]]; then
|
if [[ ! $pkg =~ ^[[:alnum:]\>\<\=\.\+\_\-]+$ ]]; then
|
||||||
error "$(gettext "Invalid syntax for optdepend : '%s'")" "$i"
|
error "$(gettext "Invalid syntax for optdepend : '%s'")" "$i"
|
||||||
|
ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue