aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@uclouvain.be>2019-03-01 01:16:25 +0100
committerGuillaume Maudoux <layus.on@gmail.com>2019-03-10 00:56:09 +0100
commitfc02b1b3eee7632049040a96b056d769a088b2ea (patch)
treec135285f872eef18d5b22f3797dd7789061cd497 /src/nix-store
parent8574b703424b73f6f75fc549b1738a6534d6a01e (diff)
Also print rooted path in `nix-store -q --roots`
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 1 insertions, 1 deletions
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;
}