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-16T11·05+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-16T11·05+0000
commitb9ecadee6e32eddac07d09a228f0dda2b340c7ac (patch)
tree0d4c3c1279801332235202dcab52ba757ed0c82a /src/nix.cc
parentc11bbcfd26e554ca044c1cce293097e4e87ef31e (diff)
* Fix the -qr query.
Diffstat (limited to 'src/nix.cc')
-rw-r--r--src/nix.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nix.cc b/src/nix.cc
index 22928880f9ad..ae016824d1f9 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -159,23 +159,19 @@ static void opQuery(Strings opFlags, Strings opArgs)
 
         case qPath: {
             Strings paths = fstatePaths(id, true);
-            for (Strings::iterator i = paths.begin(); 
-                 i != paths.end(); i++)
-                cout << format("%s\n") % *i;
+            for (Strings::iterator j = paths.begin(); 
+                 j != paths.end(); j++)
+                cout << format("%s\n") % *j;
             break;
         }
 
-#if 0
         case qRefs: {
-            StringSet refs;
-            FState fs = hash2fstate(hash);
-            fstateRefs(realiseFState(fs, refs), refs);
+            StringSet refs = fstateRefs(id);
             for (StringSet::iterator j = refs.begin(); 
                  j != refs.end(); j++)
                 cout << format("%s\n") % *j;
             break;
         }
-#endif
 
         default:
             abort();