From c6a94a8d2204cfdec0f782f647903d597b4faf57 Mon Sep 17 00:00:00 2001 From: Andres P Date: Mon, 21 Jun 2010 12:25:37 -0430 Subject: makepkg: fix regression in split package function checking Commit 13748ca0529 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 Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/makepkg.sh.in') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index dbc40471..f2ec78e2 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 -- cgit v1.2.3-54-g00ecf