summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-07-25 02:02:37 +0200
committerDan McGee <dan@archlinux.org>2008-07-25 05:16:29 +0200
commit8877c88defdd9ea90bed9fb569addfa2b242a0f4 (patch)
treeb95f4af7fa4158b742d7b11b70f1fde8340aa5f7
parentdfae7bdd52476673424f8020befef166cf95f3fc (diff)
downloadpacman-8877c88defdd9ea90bed9fb569addfa2b242a0f4.tar.gz
pacman-8877c88defdd9ea90bed9fb569addfa2b242a0f4.tar.xz
Show number of packages to be installed / removed.
This fixes FS#7794. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/pacman/util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index efe8e6a7..82c460b7 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -519,13 +519,17 @@ void display_targets(const alpm_list_t *pkgs, int install)
mbisize = isize / (1024.0 * 1024.0);
if(install) {
- list_display(_("Targets:"), targets);
+ asprintf(&str, _("Targets (%d):"), alpm_list_count(targets));
+ list_display(str, targets);
+ free(str);
printf("\n");
printf(_("Total Download Size: %.2f MB\n"), mbdlsize);
printf(_("Total Installed Size: %.2f MB\n"), mbisize);
} else {
- list_display(_("Remove:"), targets);
+ asprintf(&str, _("Remove (%d):"), alpm_list_count(targets));
+ list_display(str, targets);
+ free(str);
printf("\n");
printf(_("Total Removed Size: %.2f MB\n"), mbisize);