xbps-src: make -K and -C really work.

This commit is contained in:
Juan RP 2011-07-04 21:29:11 +02:00
parent 0ffa09c1b4
commit 24bad5c713
5 changed files with 14 additions and 18 deletions

View file

@ -43,7 +43,7 @@ run_func_error()
remove_pkgdestdir_sighandler()
{
local lver subpkg _pkgname="$1"
local lver subpkg _pkgname="$1" _kwrksrc="$2"
setup_tmpl ${_pkgname}
[ -z "$sourcepkg" ] && return 0
@ -71,8 +71,7 @@ remove_pkgdestdir_sighandler()
msg_red "'${sourcepkg}-${lver}': removed files from DESTDIR...\n"
fi
[ -n "$2" ] && KEEP_AUTODEPS=1
autoremove_pkg_dependencies
autoremove_pkg_dependencies ${_kwrksrc}
}
var_is_a_function()