xbps-src: fix remove_pkg(), it's msg_warn().

This commit is contained in:
Juan RP 2011-06-29 08:24:32 +02:00
parent 0f2ac855c0
commit 8b6343a59a
2 changed files with 10 additions and 1 deletions

View File

@ -70,6 +70,15 @@ remove_pkgdestdir_sighandler()
rm -rf "$XBPS_DESTDIR/${sourcepkg}-${version%_*}"
fi
msg_red "'${sourcepkg}-${lver}': removed files from DESTDIR...\n"
#
# 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" ]; then
msg_normal "Removing binary package dependencies...\n"
${fakeroot_cmd} ${fakeroot_cmd_args} \
${XBPS_BIN_CMD} -Rpyf autoremove
fi
}
var_is_a_function()

View File

@ -217,7 +217,7 @@ remove_pkg()
ver=$($XBPS_PKGDB_CMD version $pkgname)
if [ -z "$ver" ]; then
msg_warning "$pkgname is not installed.\n"
msg_warn "$pkgname is not installed.\n"
fi
. $XBPS_SHUTILSDIR/stow_funcs.sh