xbps-src: only autoremove pkgs if not installing builddeps.

This commit is contained in:
Juan RP 2011-06-21 15:19:01 +02:00
parent dcd8d8bd70
commit 279bda852a

View file

@ -171,7 +171,7 @@ install_pkg()
# If XBPS_PREFER_BINPKG_DEPS is set, we should remove those
# package dependencies installed by the target package, do it.
#
if [ -n "$XBPS_PREFER_BINPKG_DEPS" ]; then
if [ -n "$XBPS_PREFER_BINPKG_DEPS" -a -z "$doing_deps" ]; then
msg_normal "Removing binary package dependencies...\n"
${XBPS_BIN_CMD} -Rpyf autoremove
fi