mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04: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
|
fi
|
||||||
|
|
||||||
# check the PKGBUILD for some basic requirements
|
# check the PKGBUILD for some basic requirements
|
||||||
check_sanity || insane=1
|
check_sanity || exit 1
|
||||||
if [ $insane -eq 1 ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# We need to run devel_update regardless of whether we are in the fakeroot
|
# 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
|
# build process so that if the user runs makepkg --forcever manually, we
|
||||||
|
Loading…
Reference in New Issue
Block a user