forked from lix-project/lix
unify naming of roots as links & targets
This commit is contained in:
parent
9d87e3fbd2
commit
9d7221183a
|
@ -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, links] : roots)
|
for (auto & [target, links] : roots)
|
||||||
if (referrers.find(path) != referrers.end())
|
if (referrers.find(target) != referrers.end())
|
||||||
for (auto & link : links)
|
for (auto & link : links)
|
||||||
cout << format("%1% -> %2%\n") % link % path;
|
cout << format("%1% -> %2%\n") % link % target;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -592,9 +592,9 @@ static void opGC(Strings opFlags, Strings opArgs)
|
||||||
|
|
||||||
if (printRoots) {
|
if (printRoots) {
|
||||||
Roots roots = store->findRoots();
|
Roots roots = store->findRoots();
|
||||||
for (auto & [path, roots] : roots)
|
for (auto & [target, links] : roots)
|
||||||
for (auto & root : roots)
|
for (auto & link : links)
|
||||||
cout << root << " -> " << path << std::endl;
|
cout << link << " -> " << target << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue