From 04d5c4294ab5d35cceb149d7c94a4bf3aa6d7a85 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 13 Jun 2009 23:54:23 +1000 Subject: makepkg: fix PKGBUILD sanity check If PKGBUILD was good, the "insane" variable was not defined and so the if statement failed. Simplify and fix this check. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index f46b7f81..e2e3de68 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1630,10 +1630,7 @@ if [ "$(type -t package)" = "function" ]; then fi # check the PKGBUILD for some basic requirements -check_sanity || insane=1 -if [ $insane -eq 1 ]; then - exit 1 -fi +check_sanity || exit 1 # We need to run devel_update regardless of whether we are in the fakeroot # build process so that if the user runs makepkg --forcever manually, we -- cgit v1.2.3-70-g09d2