From fc02b1b3eee7632049040a96b056d769a088b2ea Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Fri, 1 Mar 2019 01:16:25 +0100 Subject: [PATCH] Also print rooted path in `nix-store -q --roots` --- src/nix-store/nix-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 89831eb3d..11d0d573f 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -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; }