mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
fixup! Make roots a map of store paths to pinning links
This commit is contained in:
parent
ebc86550f9
commit
8574b70342
1 changed files with 3 additions and 3 deletions
|
@ -428,10 +428,10 @@ static void opQuery(Strings opFlags, Strings opArgs)
|
||||||
referrers, true, settings.gcKeepOutputs, settings.gcKeepDerivations);
|
referrers, true, settings.gcKeepOutputs, settings.gcKeepDerivations);
|
||||||
}
|
}
|
||||||
Roots roots = store->findRoots();
|
Roots roots = store->findRoots();
|
||||||
for (auto & [path, roots] : roots)
|
for (auto & [path, links] : roots)
|
||||||
if (referrers.find(path) != referrers.end())
|
if (referrers.find(path) != referrers.end())
|
||||||
for (auto & root : roots)
|
for (auto & link : links)
|
||||||
cout << format("%1% -> %2%\n") % root % path;
|
cout << format("%1%\n") % link;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue