xbps-src: force autodeps cleanup while building dependencies.

Before that change, "./xbps-src -C pkg foo" would not remove dependencies
installed by previous builds required by foo.
This commit is contained in:
Juan RP 2015-05-02 03:40:52 +02:00
parent 65727584e0
commit 4f67c26652
3 changed files with 5 additions and 5 deletions

View file

@ -83,7 +83,7 @@ if declare -f do_clean >/dev/null; then
run_func do_clean
fi
if [ -z "$XBPS_KEEP_ALL" ]; then
if [ -n "$XBPS_DEPENDENCY" -o -z "$XBPS_KEEP_ALL" ]; then
remove_pkg_autodeps
remove_pkg_wrksrc
remove_pkg $XBPS_CROSS_BUILD