aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_update.cpp
diff options
context:
space:
mode:
authorOlaf <olafvdspek@gmail.com>2017-05-08 11:45:01 +0200
committerOlaf <olafvdspek@gmail.com>2017-05-08 11:45:01 +0200
commitd010c81b132d2d40e6f72adb49bcfe5a4d1ac353 (patch)
tree16d06ee9c1fd5e0de7dd705e2d9a70b4aa327a9f /toolsrc/src/commands_update.cpp
parente1a111ad09d74a5b683635000e34bcc38c717d45 (diff)
downloadvcpkg-d010c81b132d2d40e6f72adb49bcfe5a4d1ac353.tar.gz
vcpkg-d010c81b132d2d40e6f72adb49bcfe5a4d1ac353.zip
List packages for vcpkg install
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");