diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-03 18:10:29 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-10 14:00:11 -0800 |
| commit | a13b2f0c92d1cd5322ed0cb839a4bba5b1ab6aa7 (patch) | |
| tree | 35cda0b755f5d3c7304b44663c6e1732a0df7664 /toolsrc/src/commands_install.cpp | |
| parent | 95650bdd424b9499f4676dae8f110b15b3fd024f (diff) | |
| download | vcpkg-a13b2f0c92d1cd5322ed0cb839a4bba5b1ab6aa7.tar.gz vcpkg-a13b2f0c92d1cd5322ed0cb839a4bba5b1ab6aa7.zip | |
build_package() modified to return the result of the build
Diffstat (limited to 'toolsrc/src/commands_install.cpp')
| -rw-r--r-- | toolsrc/src/commands_install.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp index 1f5a2234d..48da05e9c 100644 --- a/toolsrc/src/commands_install.cpp +++ b/toolsrc/src/commands_install.cpp @@ -214,7 +214,11 @@ namespace vcpkg::Commands::Install } else if (action.plan.plan_type == install_plan_type::BUILD_AND_INSTALL) { - Commands::Build::build_package(*action.plan.source_pgh, action.spec, paths, paths.port_dir(action.spec)); + const Build::BuildResult result = Commands::Build::build_package(*action.plan.source_pgh, action.spec, paths, paths.port_dir(action.spec)); + if (result != Build::BuildResult::SUCCESS) + { + exit(EXIT_FAILURE); + } const BinaryParagraph bpgh = try_load_cached_package(paths, action.spec).get_or_throw(); install_package(paths, bpgh, &status_db); System::println(System::color::success, "Package %s is installed", action.spec); |
