summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-02-03 10:15:36 +1000
committerDan McGee <dan@archlinux.org>2011-02-02 18:46:47 -0600
commit35a8cf134bedf723dc6df5c6c2d6744ed942f31f (patch)
treef574c900e8ea56a276f45b425d9bebe2a035c8aa
parentd8c4b12c66f1b4851eac5b61c7455a05d891ac70 (diff)
downloadpacman-35a8cf134bedf723dc6df5c6c2d6744ed942f31f.tar.xz
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>
-rw-r--r--scripts/makepkg.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index ebafa0b7..e8f57e14 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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