forked from lix-project/lix
* Don't sort the result of `--query --list'.
This commit is contained in:
parent
ebff82222c
commit
181aa3dc41
10
src/nix.cc
10
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue