diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-16T08·30+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-16T08·30+0000 |
commit | c11bbcfd26e554ca044c1cce293097e4e87ef31e (patch) | |
tree | ccbaf5b13b7f4d6de35ef7fcdaa00e51f194a25d /src/nix.cc | |
parent | d41d085b771d0f87658fe22512178603b3a0c633 (diff) |
* Fix self-referential outputs.
* Fix -qp query.
Diffstat (limited to 'src/nix.cc')
-rw-r--r-- | src/nix.cc | 9 |
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); |