about summary refs log tree commit diff
path: root/src/nix.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-16T08·30+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-16T08·30+0000
commitc11bbcfd26e554ca044c1cce293097e4e87ef31e (patch)
treeccbaf5b13b7f4d6de35ef7fcdaa00e51f194a25d /src/nix.cc
parentd41d085b771d0f87658fe22512178603b3a0c633 (diff)
* Fix self-referential outputs.
* Fix -qp query.

Diffstat (limited to 'src/nix.cc')
-rw-r--r--src/nix.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nix.cc b/src/nix.cc
index 9c77c68f4110..22928880f9ad 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -157,14 +157,15 @@ static void opQuery(Strings opFlags, Strings opArgs)
 
         switch (query) {
 
-#if 0
         case qPath: {
-            StringSet refs;
-            cout << format("%s\n") % 
-                (string) fstatePath(realiseFState(termFromHash(hash), refs));
+            Strings paths = fstatePaths(id, true);
+            for (Strings::iterator i = paths.begin(); 
+                 i != paths.end(); i++)
+                cout << format("%s\n") % *i;
             break;
         }
 
+#if 0
         case qRefs: {
             StringSet refs;
             FState fs = hash2fstate(hash);