List packages for vcpkg install

This commit is contained in:
Olaf 2017-05-08 11:45:01 +02:00
parent e1a111ad09
commit d010c81b13

View File

@ -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");