diff options
author | Allan McRae <allan@archlinux.org> | 2011-09-29 21:07:48 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-29 13:02:02 -0500 |
commit | 1463a9aa3646a0886b7ec892f4a436ea5bb4749a (patch) | |
tree | 1c8199a6766aa292f8a228e99de7b2def9429268 /src/pacman | |
parent | ad8d3ceb898716cf2642fb71963c0ef5a490621e (diff) |
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>
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |