diff options
Diffstat (limited to 'src/libstore/storeexpr.cc')
-rw-r--r-- | src/libstore/storeexpr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/storeexpr.cc b/src/libstore/storeexpr.cc index 45b5af055..29f271de8 100644 --- a/src/libstore/storeexpr.cc +++ b/src/libstore/storeexpr.cc @@ -17,7 +17,7 @@ Path writeTerm(ATerm t, const string & suffix) Path path = canonPath(nixStore + "/" + (string) h + suffix + ".store"); - if (!isValidPath(path)) { + if (!readOnlyMode && !isValidPath(path)) { char * s = ATwriteToString(t); if (!s) throw Error(format("cannot write aterm to `%1%'") % path); addTextToStore(path, string(s)); |