mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* Allow certain operations to succeed even if we don't have write
permission to the Nix store or database. E.g., `nix-env -qa' will work, but `nix-env -qas' won't (the latter needs DB access). The option `--readonly-mode' forces this mode; otherwise, it's only activated when the database cannot be opened.
This commit is contained in:
parent
3ade3e7721
commit
f4d44a0026
9 changed files with 58 additions and 16 deletions
|
@ -8,7 +8,7 @@
|
|||
#include "nixexpr.hh"
|
||||
|
||||
|
||||
typedef map<Path, PathSet> DrvPaths;
|
||||
typedef map<Path, PathSet> DrvRoots;
|
||||
typedef map<Path, Hash> DrvHashes;
|
||||
|
||||
struct EvalState;
|
||||
|
@ -22,7 +22,7 @@ struct EvalState
|
|||
{
|
||||
ATermMap normalForms;
|
||||
ATermMap primOps;
|
||||
DrvPaths drvPaths;
|
||||
DrvRoots drvRoots;
|
||||
DrvHashes drvHashes; /* normalised derivation hashes */
|
||||
Expr blackHole;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue