xbps-src: make -K work when run_func returns an error.

This commit is contained in:
Juan RP 2011-07-06 10:06:49 +02:00
parent 3d3ee4ac40
commit 86d0b0adcf
3 changed files with 2 additions and 11 deletions

View file

@ -30,7 +30,7 @@ run_func_error()
{
local lver func="$1"
remove_pkgdestdir_sighandler ${pkgname}
remove_pkgdestdir_sighandler ${pkgname} $KEEP_AUTODEPS
if [ -n "${revision}" ]; then
lver="${version}_${revision}"