mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Cleanup
This commit is contained in:
parent
35c98a59c5
commit
09b14ea97a
1 changed files with 2 additions and 3 deletions
|
@ -239,12 +239,11 @@ StorePaths Store::topoSortPaths(const StorePathSet & paths)
|
||||||
{
|
{
|
||||||
return topoSort(paths,
|
return topoSort(paths,
|
||||||
{[&](const StorePath & path) {
|
{[&](const StorePath & path) {
|
||||||
StorePathSet references;
|
|
||||||
try {
|
try {
|
||||||
references = queryPathInfo(path)->references;
|
return queryPathInfo(path)->references;
|
||||||
} catch (InvalidPath &) {
|
} catch (InvalidPath &) {
|
||||||
|
return StorePathSet();
|
||||||
}
|
}
|
||||||
return references;
|
|
||||||
}},
|
}},
|
||||||
{[&](const StorePath & path, const StorePath & parent) {
|
{[&](const StorePath & path, const StorePath & parent) {
|
||||||
return BuildError(
|
return BuildError(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue