mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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:
parent
3de8f8f1cc
commit
b7c994db8b
@ -1356,7 +1356,6 @@ error_function() {
|
|||||||
if (( ! BASH_SUBSHELL )); then
|
if (( ! BASH_SUBSHELL )); then
|
||||||
error "$(gettext "A failure occurred in %s().")" "$1"
|
error "$(gettext "A failure occurred in %s().")" "$1"
|
||||||
plain "$(gettext "Aborting...")"
|
plain "$(gettext "Aborting...")"
|
||||||
remove_deps
|
|
||||||
fi
|
fi
|
||||||
exit 2 # $E_BUILD_FAILED
|
exit 2 # $E_BUILD_FAILED
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user