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 <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2009-06-13 23:54:23 +10:00 committed by Dan McGee
parent aa579b8438
commit 04d5c4294a
1 changed files with 1 additions and 4 deletions

View File

@ -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