mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
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:
parent
aa579b8438
commit
04d5c4294a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user