aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-22 23:31:52 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-22 23:34:16 +0100
commite70f24876c273c4d4e877015b499afd8a3099aaa (patch)
tree3ea4956bbb1e2369fce3aeae16174ee0a5e05a89
parentd6f34ad6f149062c9c43e8647b03ef762323a4f2 (diff)
downloadpaludis-e70f24876c273c4d4e877015b499afd8a3099aaa.tar.gz
paludis-e70f24876c273c4d4e877015b499afd8a3099aaa.tar.xz
x of y
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index 72d532d..9411f57 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -130,10 +130,11 @@ namespace
void starting_action(
const std::string & action,
- const std::tr1::shared_ptr<const Decision> & c)
+ const std::tr1::shared_ptr<const Decision> & c,
+ const int x, const int y)
{
cout << endl;
- cout << c::bold_blue() << "Starting " << action << " for "
+ cout << c::bold_blue() << x << " of " << y << ": Starting " << action << " for "
<< *c->if_package_id() << "..." << c::normal() << endl;
cout << endl;
}
@@ -162,7 +163,7 @@ namespace
const std::tr1::shared_ptr<const PackageID> id(c->if_package_id());
Context context("When fetching for '" + stringify(*id) + "':");
- starting_action("fetch", c);
+ starting_action("fetch", c, x, y);
std::string command(cmdline.program_options.a_perform_program.argument());
if (command.empty())
@@ -188,7 +189,7 @@ namespace
const std::tr1::shared_ptr<const PackageID> id(r->decision()->if_package_id());
Context context("When installing to / for '" + stringify(*id) + "':");
- starting_action("install to /", r->decision());
+ starting_action("install to /", r->decision(), x, y);
std::string command(cmdline.program_options.a_perform_program.argument());
if (command.empty())