mirror of
https://github.com/NixOS/nix
synced 2025-07-05 08:11:47 +02:00
* Fix the -qr query.
This commit is contained in:
parent
c11bbcfd26
commit
b9ecadee6e
3 changed files with 40 additions and 15 deletions
12
src/nix.cc
12
src/nix.cc
|
@ -159,23 +159,19 @@ static void opQuery(Strings opFlags, Strings opArgs)
|
|||
|
||||
case qPath: {
|
||||
Strings paths = fstatePaths(id, true);
|
||||
for (Strings::iterator i = paths.begin();
|
||||
i != paths.end(); i++)
|
||||
cout << format("%s\n") % *i;
|
||||
for (Strings::iterator j = paths.begin();
|
||||
j != paths.end(); j++)
|
||||
cout << format("%s\n") % *j;
|
||||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
case qRefs: {
|
||||
StringSet refs;
|
||||
FState fs = hash2fstate(hash);
|
||||
fstateRefs(realiseFState(fs, refs), refs);
|
||||
StringSet refs = fstateRefs(id);
|
||||
for (StringSet::iterator j = refs.begin();
|
||||
j != refs.end(); j++)
|
||||
cout << format("%s\n") % *j;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
default:
|
||||
abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue