diff options
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; |