diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-05-28 10:35:53 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-05-28 10:35:53 -0400 |
commit | 5b4cd84bc2ff4d7a233d6dd2fd1a5a8cfd85d889 (patch) | |
tree | c35e61f2e91e87f25e13a96ce2e30e841c01ea47 /src/libstore/store-api.cc | |
parent | f3f520c14ca0316f9e6333fbe939a277e5d78d1b (diff) | |
parent | ef71caba2960f163310d444db42ff30f5334b92f (diff) |
Merge remote-tracking branch 'me/more-rust-ffi' into no-stringly-typed-derivation-output
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 020e61625..87281eaa1 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -201,12 +201,12 @@ StorePath Store::makeTextPath(std::string_view name, const Hash & hash, std::pair<StorePath, Hash> Store::computeStorePathForPath(std::string_view name, - const Path & srcPath, FileIngestionMethod recursive, HashType hashAlgo, PathFilter & filter) const + const Path & srcPath, FileIngestionMethod method, HashType hashAlgo, PathFilter & filter) const { - Hash h = recursive == FileIngestionMethod::Recursive + Hash h = method == FileIngestionMethod::Recursive ? hashPath(hashAlgo, srcPath, filter).first : hashFile(hashAlgo, srcPath); - return std::make_pair(makeFixedOutputPath(recursive, h, name), h); + return std::make_pair(makeFixedOutputPath(method, h, name), h); } |