mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
* Don't sort the result of `--query --list'.
This commit is contained in:
parent
ebff82222c
commit
181aa3dc41
1 changed files with 4 additions and 6 deletions
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