Also print rooted path in nix-store -q --roots

This commit is contained in:
Guillaume Maudoux 2019-03-01 01:16:25 +01:00 committed by Guillaume Maudoux
parent 8574b70342
commit fc02b1b3ee

View file

@ -431,7 +431,7 @@ static void opQuery(Strings opFlags, Strings opArgs)
for (auto & [path, links] : roots)
if (referrers.find(path) != referrers.end())
for (auto & link : links)
cout << format("%1%\n") % link;
cout << format("%1% -> %2%\n") % link % path;
break;
}