summaryrefslogtreecommitdiff
path: root/src/pacman/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 14a0f6cd..d237d00e 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -538,7 +538,9 @@ void display_targets(const alpm_list_t *pkgs, int install)
printf("\n");
printf(_("Total Download Size: %.2f MB\n"), mbdlsize);
- printf(_("Total Installed Size: %.2f MB\n"), mbisize);
+ if(!(config->flags & PM_TRANS_FLAG_DOWNLOADONLY)) {
+ printf(_("Total Installed Size: %.2f MB\n"), mbisize);
+ }
} else {
asprintf(&str, _("Remove (%d):"), alpm_list_count(targets));
list_display(str, targets);