forked from lix-project/lix
Use regular file GC roots if possible
This makes hydra-eval-jobs create roots as regular files. See
1c208f2b7e
.
This commit is contained in:
parent
5f05197df4
commit
9367046fef
|
@ -115,6 +115,9 @@ Path addPermRoot(StoreAPI & store, const Path & _storePath,
|
|||
% gcRoot % rootsDir);
|
||||
}
|
||||
|
||||
if (baseNameOf(gcRoot) == baseNameOf(storePath))
|
||||
writeFile(gcRoot, "");
|
||||
else
|
||||
makeSymlink(gcRoot, storePath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue