aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg/dependencies.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/vcpkg/dependencies.cpp')
-rw-r--r--toolsrc/src/vcpkg/dependencies.cpp40
1 files changed, 22 insertions, 18 deletions
diff --git a/toolsrc/src/vcpkg/dependencies.cpp b/toolsrc/src/vcpkg/dependencies.cpp
index 19d8e7ae8..8fde28929 100644
--- a/toolsrc/src/vcpkg/dependencies.cpp
+++ b/toolsrc/src/vcpkg/dependencies.cpp
@@ -580,9 +580,10 @@ namespace vcpkg::Dependencies
auto res = follow_plus_dependencies(f, cluster, graph, graph_plan, prevent_default_features);
if (res != MarkPlusResult::SUCCESS)
{
- System::println(System::Color::warning,
- "Warning: could not reinstall feature %s",
- FeatureSpec{cluster.spec, f});
+ System::print2(System::Color::warning,
+ "Warning: could not reinstall feature ",
+ FeatureSpec{cluster.spec, f},
+ "\n");
}
}
@@ -596,9 +597,10 @@ namespace vcpkg::Dependencies
auto res = mark_plus(default_feature, cluster, graph, graph_plan, prevent_default_features);
if (res != MarkPlusResult::SUCCESS)
{
- System::println(System::Color::warning,
- "Warning: could not install new default feature %s",
- FeatureSpec{cluster.spec, default_feature});
+ System::print2(System::Color::warning,
+ "Warning: could not install new default feature ",
+ FeatureSpec{cluster.spec, default_feature},
+ "\n");
}
}
}
@@ -837,40 +839,42 @@ namespace vcpkg::Dependencies
if (!excluded.empty())
{
- System::println("The following packages are excluded:\n%s", actions_to_output_string(excluded));
+ System::print2("The following packages are excluded:\n", actions_to_output_string(excluded), '\n');
}
if (!already_installed_plans.empty())
{
- System::println("The following packages are already installed:\n%s",
- actions_to_output_string(already_installed_plans));
+ System::print2("The following packages are already installed:\n",
+ actions_to_output_string(already_installed_plans),
+ '\n');
}
if (!rebuilt_plans.empty())
{
- System::println("The following packages will be rebuilt:\n%s", actions_to_output_string(rebuilt_plans));
+ System::print2("The following packages will be rebuilt:\n", actions_to_output_string(rebuilt_plans), '\n');
}
if (!new_plans.empty())
{
- System::println("The following packages will be built and installed:\n%s",
- actions_to_output_string(new_plans));
+ System::print2(
+ "The following packages will be built and installed:\n", actions_to_output_string(new_plans), '\n');
}
if (!only_install_plans.empty())
{
- System::println("The following packages will be directly installed:\n%s",
- actions_to_output_string(only_install_plans));
+ System::print2("The following packages will be directly installed:\n",
+ actions_to_output_string(only_install_plans),
+ '\n');
}
if (has_non_user_requested_packages)
- System::println("Additional packages (*) will be modified to complete this operation.");
+ System::print2("Additional packages (*) will be modified to complete this operation.\n");
if (!remove_plans.empty() && !is_recursive)
{
- System::println(System::Color::warning,
- "If you are sure you want to rebuild the above packages, run the command with the "
- "--recurse option");
+ System::print2(System::Color::warning,
+ "If you are sure you want to rebuild the above packages, run the command with the "
+ "--recurse option\n");
Checks::exit_fail(VCPKG_LINE_INFO);
}
}