aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_update.cpp')
-rw-r--r--toolsrc/src/commands_update.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolsrc/src/commands_update.cpp b/toolsrc/src/commands_update.cpp
index e39c7dd35..f87ccfb06 100644
--- a/toolsrc/src/commands_update.cpp
+++ b/toolsrc/src/commands_update.cpp
@@ -56,15 +56,18 @@ namespace vcpkg::Commands::Update
}
else
{
+ std::string install_line;
System::println("The following packages differ from their port versions:");
for (auto&& package : outdated_packages)
{
+ install_line += package.spec.to_string();
+ install_line += " ";
System::println(" %-32s %s", package.spec, package.version_diff.to_string());
}
System::println("\n"
"To update these packages, run\n"
" .\\vcpkg remove --outdated\n"
- " .\\vcpkg install <pkgs>...");
+ " .\\vcpkg install " + install_line);
}
auto version_file = paths.get_filesystem().read_contents(paths.root / "toolsrc" / "VERSION.txt");