diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-10-27T10·24+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-10-27T10·24+0000 |
commit | f09618b63a3e842adc59360c9bb4cf0ad37246ef (patch) | |
tree | b7e3a046793b8adfca9b50187ccf626635e79fd6 /src/nix-env | |
parent | c7bea941b04710b4a4f1b64c1274207d355633dd (diff) |
* Turn on read-only mode in queries. This prevents redundant store I/O.
Diffstat (limited to 'src/nix-env')
-rw-r--r-- | src/nix-env/main.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index f87c41312610..c25cdb60caf9 100644 --- a/src/nix-env/main.cc +++ b/src/nix-env/main.cc @@ -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; |