aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_install.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-28 15:05:55 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-28 18:59:57 -0700
commit42bd55e3ae815e43181facfdc161d29804014f26 (patch)
treed0e4db89947aa557ec6e3bf6065cfb43cbc796ff /toolsrc/src/commands_install.cpp
parent67ce764c2ea7483860a3ad61441608d8978605ae (diff)
downloadvcpkg-42bd55e3ae815e43181facfdc161d29804014f26.tar.gz
vcpkg-42bd55e3ae815e43181facfdc161d29804014f26.zip
Rework optional<T>
Diffstat (limited to 'toolsrc/src/commands_install.cpp')
-rw-r--r--toolsrc/src/commands_install.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp
index 0b2062a7e..6c8ab8be4 100644
--- a/toolsrc/src/commands_install.cpp
+++ b/toolsrc/src/commands_install.cpp
@@ -216,7 +216,11 @@ namespace vcpkg::Commands::Install
}
else if (action.plan.plan_type == install_plan_type::BUILD_AND_INSTALL)
{
- const Build::BuildResult result = Commands::Build::build_package(*action.plan.source_pgh, action.spec, paths, paths.port_dir(action.spec), status_db);
+ const Build::BuildResult result = Commands::Build::build_package(action.plan.source_pgh.get_or_exit(VCPKG_LINE_INFO),
+ action.spec,
+ paths,
+ paths.port_dir(action.spec),
+ status_db);
if (result != Build::BuildResult::SUCCEEDED)
{
System::println(System::color::error, Build::create_error_message(result, action.spec));
@@ -229,7 +233,7 @@ namespace vcpkg::Commands::Install
}
else if (action.plan.plan_type == install_plan_type::INSTALL)
{
- install_package(paths, *action.plan.binary_pgh, &status_db);
+ install_package(paths, action.plan.binary_pgh.get_or_exit(VCPKG_LINE_INFO), &status_db);
System::println(System::color::success, "Package %s is installed", action.spec);
}
else