xbps-src: cleanup signal handler catching SIGINT and SIGTERM.

- catching SIGHUP is meaningless.
- there's no point in clearning wkrsrc or removing autodeps, this is left
  intact right now; this could be useful to have.
This commit is contained in:
Juan RP 2014-09-24 20:03:20 +02:00
parent 35da85f4eb
commit b96e0ffe0a

View file

@ -281,14 +281,6 @@ masterdir_zap() {
exit_func() { exit_func() {
wait wait
if [ -z "$XBPS_KEEP_ALL" ]; then
if [ -n "$IN_CHROOT" ]; then
remove_pkg_autodeps
fi
if [ -n "$sourcepkg" ]; then
remove_pkg_wrksrc
fi
fi
if [ -n "$sourcepkg" ]; then if [ -n "$sourcepkg" ]; then
remove_pkg $XBPS_CROSS_BUILD remove_pkg $XBPS_CROSS_BUILD
fi fi
@ -535,7 +527,7 @@ fi
check_build_requirements check_build_requirements
trap 'exit_func' INT TERM HUP trap 'exit_func' INT TERM
# #
# Main switch. # Main switch.