makepkg.sh: skip checking buildtime deps when runtime check already failed

This could help locate the real failure (instead of scrolling through the whole possibly-successful buildtime dep installation section) and also saves time on the operation.
This commit is contained in:
Felix Yan 2024-03-10 23:27:53 +00:00 committed by Allan McRae
parent 692f7a2cfe
commit 64299ccfbb

View file

@ -1319,11 +1319,13 @@ else
original_pkglist=($(run_pacman -Qq)) # required by remove_dep
fi
msg "$(gettext "Checking buildtime dependencies...")"
if (( CHECKFUNC )); then
resolve_deps "${makedepends[@]}" "${checkdepends[@]}" || deperr=1
else
resolve_deps "${makedepends[@]}" || deperr=1
if (( ! deperr )); then
msg "$(gettext "Checking buildtime dependencies...")"
if (( CHECKFUNC )); then
resolve_deps "${makedepends[@]}" "${checkdepends[@]}" || deperr=1
else
resolve_deps "${makedepends[@]}" || deperr=1
fi
fi
if (( RMDEPS )); then