diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-03 14:12:38 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-03 14:12:38 +0000 |
commit | 3134db1a8399a4d224eb615becddeee12419883f (patch) | |
tree | a1ead3593f243f24cecd9581348d88f9eb0211f4 /src/libstore/store-api.cc | |
parent | 13796be78dfa9d3a189ea6b482659c56b1301634 (diff) | |
parent | dbffd309fed95d306135617fdc18ce4cf6109025 (diff) |
Merge branch 'hash-always-has-type' of github.com:obsidiansystems/nix into better-ca-parse-errors
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 080ce9823..54d067502 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -242,6 +242,16 @@ bool Store::PathInfoCacheValue::isKnownNow() return std::chrono::steady_clock::now() < time_point + ttl; } +StorePathSet Store::queryDerivationOutputs(const StorePath & path) +{ + auto outputMap = this->queryDerivationOutputMap(path); + StorePathSet outputPaths; + for (auto & i: outputMap) { + outputPaths.emplace(std::move(i.second)); + } + return outputPaths; +} + bool Store::isValidPath(const StorePath & storePath) { std::string hashPart(storePath.hashPart()); |