diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-07 16:06:36 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-07 16:06:36 -0800 |
| commit | a721db2c1fbfc1b87065b0b43e32249117e53242 (patch) | |
| tree | 1b0a928249499fe6aefd08261ef9b46186d348c6 /toolsrc/src/commands_installation.cpp | |
| parent | 8e9338e4a00b44fd7721d8c6866c72d1502c3f97 (diff) | |
| download | vcpkg-a721db2c1fbfc1b87065b0b43e32249117e53242.tar.gz vcpkg-a721db2c1fbfc1b87065b0b43e32249117e53242.zip | |
Refactor: create new Paragraphs.h/cpp
Diffstat (limited to 'toolsrc/src/commands_installation.cpp')
| -rw-r--r-- | toolsrc/src/commands_installation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toolsrc/src/commands_installation.cpp b/toolsrc/src/commands_installation.cpp index f6aeafa02..b5f4e1a5d 100644 --- a/toolsrc/src/commands_installation.cpp +++ b/toolsrc/src/commands_installation.cpp @@ -9,6 +9,7 @@ #include "vcpkg_Dependencies.h" #include "vcpkg_Input.h" #include "vcpkg_Maps.h" +#include "Paragraphs.h" namespace vcpkg { @@ -21,7 +22,7 @@ namespace vcpkg static void build_internal(const package_spec& spec, const vcpkg_paths& paths, const fs::path& port_dir) { - auto pghs = get_paragraphs(port_dir / "CONTROL"); + auto pghs = Paragraphs::get_paragraphs(port_dir / "CONTROL"); Checks::check_exit(pghs.size() == 1, "Error: invalid control file"); SourceParagraph source_paragraph(pghs[0]); @@ -111,7 +112,7 @@ namespace vcpkg } } - auto pghs = parse_paragraphs(file_contents.get_or_throw()); + auto pghs = Paragraphs::parse_paragraphs(file_contents.get_or_throw()); Checks::check_throw(pghs.size() == 1, "multiple paragraphs in control file"); install_package(paths, BinaryParagraph(pghs[0]), status_db); System::println(System::color::success, "Package %s is installed", spec); |
