From f4d44a002688262d33093494a7fea1bb11b97ac9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Oct 2004 14:38:23 +0000 Subject: * 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. --- src/libstore/globals.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstore/globals.hh') diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 7f88d5c53b27..beaa0acc9ff0 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -43,5 +43,9 @@ extern Verbosity buildVerbosity; /* Maximum number of parallel build jobs. 0 means unlimited. */ extern unsigned int maxBuildJobs; +/* Read-only mode. Don't copy stuff to the store, don't change the + database. */ +extern bool readOnlyMode; + #endif /* !__GLOBALS_H */ -- cgit 1.4.1