diff options
author | Allan McRae <allan@archlinux.org> | 2009-12-24 08:09:38 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-01-19 23:39:22 -0600 |
commit | afb61bb22a9478ec076f77ff0e102e81763191e7 (patch) | |
tree | ed5927aaa96cc9d477c485e0d1029d4e3041953a /src | |
parent | 27bc2f7eb81566370f9f19f89eb95c6e6c9ec49a (diff) |
Do not print installed size when only downloading
When using --downloadonly the "Total Installed Size" message is not
needed and perhaps misleading.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/util.c | 4 |
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); |