diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-05-15 23:41:31 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-05-15 23:41:31 -0700 |
| commit | 8bb28d0de4903075643a1683cad3c4e5ad89920a (patch) | |
| tree | 35ebfd5ede410c1cf0a8216494fdd8533ee6a00a /toolsrc/src | |
| parent | 1b0682a39e1143660c3d5aa371f66591a64e8a5d (diff) | |
| download | vcpkg-8bb28d0de4903075643a1683cad3c4e5ad89920a.tar.gz vcpkg-8bb28d0de4903075643a1683cad3c4e5ad89920a.zip | |
Fix signature of hashing function
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/commands.hash.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg/commands.hash.cpp b/toolsrc/src/vcpkg/commands.hash.cpp index d7d653ca3..0c7aa72c4 100644 --- a/toolsrc/src/vcpkg/commands.hash.cpp +++ b/toolsrc/src/vcpkg/commands.hash.cpp @@ -201,11 +201,10 @@ namespace vcpkg::Commands::Hash return split[0]; } - std::string get_file_hash(const VcpkgPaths& paths, const fs::path& path, const std::string& hash_type) + std::string get_file_hash(const Files::Filesystem& fs, const fs::path& path, const std::string& hash_type) { const std::string digest_size = get_digest_size(hash_type); - Checks::check_exit( - VCPKG_LINE_INFO, paths.get_filesystem().exists(path), "File %s does not exist", path.u8string()); + Checks::check_exit(VCPKG_LINE_INFO, fs.exists(path), "File %s does not exist", path.u8string()); const std::string cmd_line = Strings::format(R"(shasum -a %s "%s")", digest_size, path.u8string()); return run_shasum_and_post_process(cmd_line); } |
