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/db.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libstore/db.hh') diff --git a/src/libstore/db.hh b/src/libstore/db.hh index bbeabfc7dfa4..d566fdad1e1c 100644 --- a/src/libstore/db.hh +++ b/src/libstore/db.hh @@ -87,4 +87,11 @@ public: }; +class DbNoPermission : public Error +{ +public: + DbNoPermission(const format & f) : Error(f) { }; +}; + + #endif /* !__DB_H */ -- cgit 1.4.1