xbps-src: with -C do not remove wrksrc on SIGINT; found by @chneukirchen.

This commit is contained in:
Juan RP 2014-08-29 21:23:07 +02:00
parent db9da1246e
commit b29dfe8ac4

View file

@ -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"