aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-15 15:22:40 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-15 18:06:07 -0800
commitfcafe9acea90db01ad059d96aeca82c1880e7da6 (patch)
tree535ebedf5382cdee62e0d28381583e8afbf03775
parentdbd8e5c56de12beb7626a7782f54b591b6154aa4 (diff)
downloadvcpkg-fcafe9acea90db01ad059d96aeca82c1880e7da6.tar.gz
vcpkg-fcafe9acea90db01ad059d96aeca82c1880e7da6.zip
Improve info displayed during the CI command
-rw-r--r--toolsrc/src/commands_ci.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/toolsrc/src/commands_ci.cpp b/toolsrc/src/commands_ci.cpp
index 496ae6146..b20c204f4 100644
--- a/toolsrc/src/commands_ci.cpp
+++ b/toolsrc/src/commands_ci.cpp
@@ -35,16 +35,19 @@ namespace vcpkg::Commands::CI
specs.push_back(package_spec::from_name_and_triplet(p.filename().generic_string(), target_triplet).get_or_throw());
}
- std::vector<package_spec_with_install_plan> install_plan = Dependencies::create_install_plan(paths, specs, status_db);
+ const std::vector<package_spec_with_install_plan> install_plan = Dependencies::create_install_plan(paths, specs, status_db);
Checks::check_exit(!install_plan.empty(), "Install plan cannot be empty");
Environment::ensure_utilities_on_path(paths);
std::vector<BuildResult> results;
Stopwatch stopwatch = Stopwatch::createStarted();
+ size_t counter = 0;
+ const size_t package_count = install_plan.size();
for (const package_spec_with_install_plan& action : install_plan)
{
- System::println(stopwatch.toString());
+ counter++;
+ System::println("Starting package %d/%d: %s. Time Elapsed: %s", counter, package_count, action.spec.toString(), stopwatch.toString());
try
{
if (action.plan.plan_type == install_plan_type::ALREADY_INSTALLED)