Remove redundant "removal" output in pure remove operation

Printing "[removal]" beside all package names is redundant when all
packages are being removed (i.e. when using -R).

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2011-09-29 21:07:48 +10:00 committed by Dan McGee
parent ad8d3ceb89
commit 1463a9aa36

View file

@ -848,6 +848,9 @@ static void _display_targets(alpm_list_t *targets, int verbose)
if(target->install) { if(target->install) {
pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(target->install), pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(target->install),
alpm_pkg_get_version(target->install)); alpm_pkg_get_version(target->install));
} else if(isize == 0) {
pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(target->remove),
alpm_pkg_get_version(target->remove));
} else { } else {
pm_asprintf(&str, "%s-%s [removal]", alpm_pkg_get_name(target->remove), pm_asprintf(&str, "%s-%s [removal]", alpm_pkg_get_name(target->remove),
alpm_pkg_get_version(target->remove)); alpm_pkg_get_version(target->remove));