install command Add status for the building phase

This commit is contained in:
Alexander Karatarakis 2017-04-07 15:46:18 -07:00
parent 4839ea8944
commit 24c2955b03

View File

@ -290,6 +290,7 @@ namespace vcpkg::Commands::Install
break;
case InstallPlanType::BUILD_AND_INSTALL:
{
System::println("Building package %s... ", action.spec);
const Build::BuildResult result = Commands::Build::build_package(action.plan.source_pgh.value_or_exit(VCPKG_LINE_INFO),
action.spec,
paths,
@ -301,6 +302,8 @@ namespace vcpkg::Commands::Install
System::println(Build::create_user_troubleshooting_message(action.spec));
Checks::exit_fail(VCPKG_LINE_INFO);
}
System::println(System::Color::success, "Building package %s... done", action.spec);
const BinaryParagraph bpgh = Paragraphs::try_load_cached_package(paths, action.spec).value_or_exit(VCPKG_LINE_INFO);
System::println("Installing package %s... ", action.spec);
install_package(paths, bpgh, &status_db);