mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-02 10:26:16 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue