xbps-src: make sure to always remove autodeps in errors.

This commit is contained in:
Juan RP 2011-07-03 08:26:35 +02:00
parent 5f0c96ffe7
commit 543263c70f
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ autoremove_pkg_dependencies()
# 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" -a -z "$base_chroot" \
-a -z "$INSTALLING_DEPS" ]; then
if [ -n "$XBPS_PREFER_BINPKG_DEPS" -a -z "$base_chroot" ]; then
msg_normal "'$pkgname': removing automatically installed dependencies ...\n"
# Autoremove installed binary packages.
${cmd} -y reconfigure all && ${cmd} -Rpyf autoremove 2>&1 >/dev/null