aboutsummaryrefslogtreecommitdiff
path: root/src/output/console_install_task.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/console_install_task.cc')
-rw-r--r--src/output/console_install_task.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/output/console_install_task.cc b/src/output/console_install_task.cc
index 84b15eb73..9de4e6cb6 100644
--- a/src/output/console_install_task.cc
+++ b/src/output/console_install_task.cc
@@ -370,6 +370,7 @@ ConsoleInstallTask::on_display_merge_list_entry(const DepListEntry & d)
display_merge_list_entry_package_tags(d, m);
display_merge_list_entry_description(d, existing_repo, existing_slot_repo, m);
display_merge_list_entry_use(d, existing_repo, existing_slot_repo, m);
+ display_merge_list_entry_distsize(d, m);
if (want_compact())
display_merge_list_entry_package_tags(d, m);
display_merge_list_entry_end(d, m);
@@ -1158,6 +1159,28 @@ ConsoleInstallTask::display_merge_list_entry_use(const DepListEntry & d,
}
void
+ConsoleInstallTask::display_merge_list_entry_distsize(const DepListEntry & d,
+ const DisplayMode m)
+{
+ if (normal_entry != m && suggested_entry != m)
+ return;
+
+ if (! d.package_id->size_of_download_required_key() || d.package_id->size_of_download_required_key()->value() == 0)
+ return;
+
+ if (want_compact())
+ output_no_endl(" ");
+ else
+ {
+ output_endl();
+ output_no_endl(" ");
+ }
+
+ output_stream() << d.package_id->size_of_download_required_key()->pretty_print()
+ << " to download";
+}
+
+void
ConsoleInstallTask::display_merge_list_entry_non_package_tags(const DepListEntry & d, const DisplayMode m)
{
if (d.tags->empty())