diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-08 16:26:26 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-08 16:26:26 -0700 |
| commit | c434dc99868989ca55aef5e445ac6a0a4c3430f7 (patch) | |
| tree | acfe66565a39a364b541013671ae786f2b5f7de4 /toolsrc/src/commands_update.cpp | |
| parent | 19123677d111143dcbe0b168f4af90771be302cb (diff) | |
| download | vcpkg-c434dc99868989ca55aef5e445ac6a0a4c3430f7.tar.gz vcpkg-c434dc99868989ca55aef5e445ac6a0a4c3430f7.zip | |
[vcpkg] Initial addition of Filesystem abstraction to enable testing.
Diffstat (limited to 'toolsrc/src/commands_update.cpp')
| -rw-r--r-- | toolsrc/src/commands_update.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/commands_update.cpp b/toolsrc/src/commands_update.cpp index 24dad34fe..68c64ca30 100644 --- a/toolsrc/src/commands_update.cpp +++ b/toolsrc/src/commands_update.cpp @@ -14,7 +14,7 @@ namespace vcpkg::Commands::Update std::vector<OutdatedPackage> find_outdated_packages(const VcpkgPaths& paths, const StatusParagraphs& status_db) { - const std::vector<SourceParagraph> source_paragraphs = Paragraphs::load_all_ports(paths.ports); + const std::vector<SourceParagraph> source_paragraphs = Paragraphs::load_all_ports(paths.get_filesystem(), paths.ports); const std::map<std::string, VersionT> src_names_to_versions = Paragraphs::extract_port_names_and_versions(source_paragraphs); const std::vector<StatusParagraph*> installed_packages = get_installed_ports(status_db); @@ -64,7 +64,7 @@ namespace vcpkg::Commands::Update " vcpkg install <pkgs>..."); } - auto version_file = Files::read_contents(paths.root / "toolsrc" / "VERSION.txt"); + auto version_file = paths.get_filesystem().read_contents(paths.root / "toolsrc" / "VERSION.txt"); if (auto version_contents = version_file.get()) { int maj1, min1, rev1; |
