forked from lix-project/lix
Also print rooted path in nix-store -q --roots
This commit is contained in:
parent
8574b70342
commit
fc02b1b3ee
|
@ -431,7 +431,7 @@ static void opQuery(Strings opFlags, Strings opArgs)
|
||||||
for (auto & [path, links] : roots)
|
for (auto & [path, links] : roots)
|
||||||
if (referrers.find(path) != referrers.end())
|
if (referrers.find(path) != referrers.end())
|
||||||
for (auto & link : links)
|
for (auto & link : links)
|
||||||
cout << format("%1%\n") % link;
|
cout << format("%1% -> %2%\n") % link % path;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue