mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
* Turn on read-only mode in queries. This prevents redundant store I/O.
This commit is contained in:
parent
c7bea941b0
commit
f09618b63a
1 changed files with 2 additions and 0 deletions
|
@ -516,6 +516,8 @@ static void opQuery(Globals & globals,
|
|||
|
||||
enum { sInstalled, sAvailable } source = sInstalled;
|
||||
|
||||
readOnlyMode = true; /* makes evaluation a bit faster */
|
||||
|
||||
for (Strings::iterator i = opFlags.begin();
|
||||
i != opFlags.end(); ++i)
|
||||
if (*i == "--status" || *i == "-s") printStatus = true;
|
||||
|
|
Loading…
Reference in a new issue