From b29dfe8ac4ee9bc850dd6b1d9c9a750e36de42e5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 29 Aug 2014 21:23:07 +0200 Subject: [PATCH] xbps-src: with -C do not remove wrksrc on SIGINT; found by @chneukirchen. --- xbps-src | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index d24b1da1c50..2224208574f 100755 --- a/xbps-src +++ b/xbps-src @@ -285,10 +285,12 @@ exit_func() { if [ -n "$IN_CHROOT" ]; then remove_pkg_autodeps fi + if [ -n "$sourcepkg" ]; then + remove_pkg_wrksrc + fi fi if [ -n "$sourcepkg" ]; then remove_pkg $XBPS_CROSS_BUILD - remove_pkg_wrksrc fi if [ -z "$IN_CHROOT" ]; then msg_red "xbps-src: a failure has ocurred! exiting...\n"