aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-12-16 19:40:58 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-12-16 19:40:58 -0800
commitaad0cc4c042aad87b2b52eded0e465ed01e799c1 (patch)
tree1650d84c1cb415906fe9b2b60bd0ce4981c1095f /toolsrc/src/vcpkg.cpp
parentb666e90c32e58a673331b303e64e299cc1168aa2 (diff)
downloadvcpkg-aad0cc4c042aad87b2b52eded0e465ed01e799c1.tar.gz
vcpkg-aad0cc4c042aad87b2b52eded0e465ed01e799c1.zip
Files::get_contents() -> Files::read_contents()
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
-rw-r--r--toolsrc/src/vcpkg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp
index bf9dbd6ab..6858d5518 100644
--- a/toolsrc/src/vcpkg.cpp
+++ b/toolsrc/src/vcpkg.cpp
@@ -27,7 +27,7 @@ static StatusParagraphs load_current_database(const fs::path& vcpkg_dir_status_f
fs::rename(vcpkg_dir_status_file_old, vcpkg_dir_status_file);
}
- auto text = Files::get_contents(vcpkg_dir_status_file).get_or_throw();
+ auto text = Files::read_contents(vcpkg_dir_status_file).get_or_throw();
auto pghs = Paragraphs::parse_paragraphs(text);
std::vector<std::unique_ptr<StatusParagraph>> status_pghs;
@@ -70,7 +70,7 @@ StatusParagraphs vcpkg::database_load_check(const vcpkg_paths& paths)
if (b->path().filename() == "incomplete")
continue;
- auto text = Files::get_contents(b->path()).get_or_throw();
+ auto text = Files::read_contents(b->path()).get_or_throw();
auto pghs = Paragraphs::parse_paragraphs(text);
for (auto&& p : pghs)
{
@@ -230,7 +230,7 @@ expected<BinaryParagraph> vcpkg::try_load_cached_package(const vcpkg_paths& path
{
const fs::path path = paths.package_dir(spec) / "CONTROL";
- auto control_contents_maybe = Files::get_contents(path);
+ auto control_contents_maybe = Files::read_contents(path);
if (auto control_contents = control_contents_maybe.get())
{
std::vector<std::unordered_map<std::string, std::string>> pghs;