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"