diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-24 22:46:27 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-25 17:53:31 +0000 |
commit | 71e4c9c505f2418084643c1a68da5c89b82038dd (patch) | |
tree | 875c3a5489b9a45ad662da27db9eefd3cf09969b /src/libstore/misc.cc | |
parent | 1722ae6ecee54e14164d215ba3d767ea6c352fc3 (diff) |
WIP: store separate `hasValidPath` bool
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r-- | src/libstore/misc.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc index e68edb38c..5214a7bf4 100644 --- a/src/libstore/misc.cc +++ b/src/libstore/misc.cc @@ -61,8 +61,7 @@ void Store::computeFSClosure(const StorePathSet & startPaths, } else { for (auto & ref : info->references) - if (ref != path) - enqueue(printStorePath(ref)); + enqueue(printStorePath(ref)); if (includeOutputs && path.isDerivation()) for (auto & i : queryDerivationOutputs(path)) @@ -268,7 +267,7 @@ StorePaths Store::topoSortPaths(const StorePathSet & paths) for (auto & i : references) /* Don't traverse into paths that don't exist. That can happen due to substitutes for non-existent paths. */ - if (i != path && paths.count(i)) + if (paths.count(i)) dfsVisit(i, &path); sorted.push_back(path); |