* Don't sort the result of `--query --list'.

This commit is contained in:
Eelco Dolstra 2003-10-16 08:06:19 +00:00
parent ebff82222c
commit 181aa3dc41

View file

@ -93,17 +93,15 @@ static void opQuery(Strings opFlags, Strings opArgs)
switch (query) { switch (query) {
case qList: { case qList: {
PathSet paths;
for (Strings::iterator i = opArgs.begin(); for (Strings::iterator i = opArgs.begin();
i != opArgs.end(); i++) i != opArgs.end(); i++)
{ {
StringSet paths2 = nixExprRoots( StringSet paths = nixExprRoots(
maybeNormalise(checkPath(*i), normalise)); 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; break;
} }