From 181aa3dc4198d2e2cfa89d3ebb53a96fa567e12f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Oct 2003 08:06:19 +0000 Subject: [PATCH] * Don't sort the result of `--query --list'. --- src/nix.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/nix.cc b/src/nix.cc index a4d2898f1..187568999 100644 --- a/src/nix.cc +++ b/src/nix.cc @@ -93,17 +93,15 @@ static void opQuery(Strings opFlags, Strings opArgs) switch (query) { case qList: { - PathSet paths; for (Strings::iterator i = opArgs.begin(); i != opArgs.end(); i++) { - StringSet paths2 = nixExprRoots( + StringSet paths = nixExprRoots( maybeNormalise(checkPath(*i), normalise)); - paths.insert(paths2.begin(), paths2.end()); + for (StringSet::iterator j = paths.begin(); + j != paths.end(); j++) + cout << format("%s\n") % *j; } - for (StringSet::iterator i = paths.begin(); - i != paths.end(); i++) - cout << format("%s\n") % *i; break; }