diff options
author | Taeer Bar-Yam <taeer.bar-yam@tweag.io> | 2022-12-15 15:58:54 -0500 |
---|---|---|
committer | Taeer Bar-Yam <taeer.bar-yam@tweag.io> | 2022-12-15 15:58:54 -0500 |
commit | e5eb05c5990d837e0bbc1529e3b5b167f7015be0 (patch) | |
tree | 13207eadab614619b336fb9079ec0086f62d102e /src/libstore/local-fs-store.cc | |
parent | 3b27181ee54176aba2cdff98028586048e08e74d (diff) |
getBuildLog: factor out resolving derivations
Diffstat (limited to 'src/libstore/local-fs-store.cc')
-rw-r--r-- | src/libstore/local-fs-store.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstore/local-fs-store.cc b/src/libstore/local-fs-store.cc index 3a0585b15..b224fc3e9 100644 --- a/src/libstore/local-fs-store.cc +++ b/src/libstore/local-fs-store.cc @@ -87,13 +87,8 @@ void LocalFSStore::narFromPath(const StorePath & path, Sink & sink) const std::string LocalFSStore::drvsLogDir = "drvs"; -std::optional<std::string> LocalFSStore::getBuildLog(const StorePath & path_) +std::optional<std::string> LocalFSStore::getBuildLogExact(const StorePath & path) { - auto maybePath = getBuildDerivationPath(path_); - if (!maybePath) - return std::nullopt; - auto path = maybePath.value(); - auto baseName = path.to_string(); for (int j = 0; j < 2; j++) { |