diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-27 16:58:53 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-27 16:58:53 -0800 |
| commit | f75177b64bd2d0d964469d94cded33ad890b28f0 (patch) | |
| tree | b8cbead19d6727a65692064c50dd5e624bb3cedd /toolsrc/src/commands_ci.cpp | |
| parent | 54859c0f1f201dfcc78e783c77c3b477d0c86c92 (diff) | |
| download | vcpkg-f75177b64bd2d0d964469d94cded33ad890b28f0.tar.gz vcpkg-f75177b64bd2d0d964469d94cded33ad890b28f0.zip | |
Use load_all_ports() in `ci`
Diffstat (limited to 'toolsrc/src/commands_ci.cpp')
| -rw-r--r-- | toolsrc/src/commands_ci.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/toolsrc/src/commands_ci.cpp b/toolsrc/src/commands_ci.cpp index a1a0f053d..2b7ba89d6 100644 --- a/toolsrc/src/commands_ci.cpp +++ b/toolsrc/src/commands_ci.cpp @@ -7,7 +7,6 @@ #include "vcpkg_Dependencies.h" #include "vcpkg_Input.h" #include "vcpkg_Chrono.h" -#include "PostBuildLint_BuildInfo.h" #include "Paragraphs.h" namespace vcpkg::Commands::CI @@ -16,18 +15,13 @@ namespace vcpkg::Commands::CI using Dependencies::install_plan_type; using Build::BuildResult; - static std::vector<package_spec> load_all_package_specs(const fs::path& directory, const triplet& target_triplet) + static std::vector<package_spec> load_all_package_specs(const fs::path& ports_directory, const triplet& target_triplet) { - std::vector<fs::path> port_folders; - Files::non_recursive_find_matching_paths_in_dir(directory, [](const fs::path& current) - { - return fs::is_directory(current); - }, &port_folders); - + std::vector<SourceParagraph> ports = Paragraphs::load_all_ports(ports_directory); std::vector<package_spec> specs; - for (const fs::path& p : port_folders) + for (const SourceParagraph& p : ports) { - specs.push_back(package_spec::from_name_and_triplet(p.filename().generic_string(), target_triplet).get_or_throw()); + specs.push_back(package_spec::from_name_and_triplet(p.name, target_triplet).get_or_throw()); } return specs; |
