makepkg: fix regression in split package function checking

Commit 13748ca052 inversed the nature of one test wherein the if clause would
throw a fatal error if a legitimate package function was defined in PKGBUILD.

Signed-off-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Andres P 2010-06-21 12:25:37 -04:30 committed by Dan McGee
parent 67d71ea932
commit c6a94a8d22
1 changed files with 1 additions and 1 deletions

View File

@ -1255,7 +1255,7 @@ check_sanity() {
if (( ${#pkgname[@]} > 1 )); then
for pkg in ${pkgname[@]}; do
if declare -f package_${pkg} >/dev/null; then
if ! declare -f package_${pkg} >/dev/null; then
error "$(gettext "missing package function for split package '%s'")" "$pkg"
return 1
fi