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>
This commit is contained in:
parent
27bc2f7eb8
commit
afb61bb22a
1 changed files with 3 additions and 1 deletions
|
@ -538,7 +538,9 @@ void display_targets(const alpm_list_t *pkgs, int install)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
printf(_("Total Download Size: %.2f MB\n"), mbdlsize);
|
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 {
|
} else {
|
||||||
asprintf(&str, _("Remove (%d):"), alpm_list_count(targets));
|
asprintf(&str, _("Remove (%d):"), alpm_list_count(targets));
|
||||||
list_display(str, targets);
|
list_display(str, targets);
|
||||||
|
|
Loading…
Add table
Reference in a new issue