about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@uclouvain.be>2019-03-01T00·16+0100
committerGuillaume Maudoux <layus.on@gmail.com>2019-03-09T23·56+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 89831eb3d303..11d0d573f077 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;
         }