mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* Don't try to register GC roots in read-only mode.
This commit is contained in:
parent
6c88d67780
commit
6057b51835
1 changed files with 2 additions and 2 deletions
|
@ -644,7 +644,7 @@ static Path _addToStore(bool fixed, bool recursive,
|
|||
|
||||
else dstPath = makeStorePath("source", h, baseName);
|
||||
|
||||
addTempRoot(dstPath);
|
||||
if (!readOnlyMode) addTempRoot(dstPath);
|
||||
|
||||
if (!readOnlyMode && !isValidPath(dstPath)) {
|
||||
|
||||
|
@ -699,7 +699,7 @@ Path addTextToStore(const string & suffix, const string & s,
|
|||
|
||||
Path dstPath = makeStorePath("text", hash, suffix);
|
||||
|
||||
addTempRoot(dstPath);
|
||||
if (!readOnlyMode) addTempRoot(dstPath);
|
||||
|
||||
if (!readOnlyMode && !isValidPath(dstPath)) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue