[pacman-dev] [PATCH] Remove redundant "removal" output in pure remove operation
Allan McRae
allan at archlinux.org
Thu Sep 29 07:18:41 EDT 2011
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 at archlinux.org>
---
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 748c0e9..34cdc8c 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -849,6 +849,9 @@ static void _display_targets(alpm_list_t *targets)
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));
--
1.7.6.4
More information about the pacman-dev
mailing list