From 1463a9aa3646a0886b7ec892f4a436ea5bb4749a Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Thu, 29 Sep 2011 21:07:48 +1000 Subject: 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 --- src/pacman/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pacman/util.c b/src/pacman/util.c index 6b6463e2..c3836a5e 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -848,6 +848,9 @@ static void _display_targets(alpm_list_t *targets, int verbose) if(target->install) { pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(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 { pm_asprintf(&str, "%s-%s [removal]", alpm_pkg_get_name(target->remove), alpm_pkg_get_version(target->remove)); -- cgit v1.2.3-70-g09d2