aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-04 00:52:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-04 00:52:38 +0000
commitf26a121bf1b9a18159440e6f45dda249dafb6993 (patch)
tree099213127486333fdb3380a9dae39603cf34a12d
parent09cdf3daaf63ede73492bae883927893ca862656 (diff)
downloadpaludis-f26a121bf1b9a18159440e6f45dda249dafb6993.tar.gz
paludis-f26a121bf1b9a18159440e6f45dda249dafb6993.tar.xz
Show package counts
-rw-r--r--src/install.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/install.cc b/src/install.cc
index d4ac319..588a785 100644
--- a/src/install.cc
+++ b/src/install.cc
@@ -135,11 +135,14 @@ do_install()
cout << endl;
}
+ int current_count = 0, max_count = std::distance(dep_list.begin(), dep_list.end());
+
+ cout << endl << "Total: " << max_count <<
+ (max_count == 1 ? " package" : " packages") << endl << endl;
+
if (CommandLine::get_instance()->a_pretend.specified())
return return_code;
- int current_count = 0, max_count = std::distance(dep_list.begin(), dep_list.end());
-
for (p::DepList::Iterator dep(dep_list.begin()), dep_end(dep_list.end()) ;
dep != dep_end ; ++dep)
{