makepkg: don't run remove_deps twice when unneeded

remove_deps already has a check and won't run unless -r is specified, so
if this was meant to remove dependencies of a failure no matter what,
then it's not doing it, and with -r it is run twice on a failure for no
real reason.

Signed-off-by: William Giokas <1007380@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
William Giokas 2013-03-15 12:11:11 -05:00 committed by Allan McRae
parent 3de8f8f1cc
commit b7c994db8b
1 changed files with 0 additions and 1 deletions

View File

@ -1356,7 +1356,6 @@ error_function() {
if (( ! BASH_SUBSHELL )); then
error "$(gettext "A failure occurred in %s().")" "$1"
plain "$(gettext "Aborting...")"
remove_deps
fi
exit 2 # $E_BUILD_FAILED
}