diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-04-12 23:03:56 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-04-12 23:03:56 +0200 |
commit | 6071b55e10b7b6e67d77ae058c8744834889e0b4 (patch) | |
tree | dee0e6b1ede52661394989ea924c6f4ea3bd16a8 /gnu/packages | |
parent | a9d2a10546b128c3d6df5665ef6dab929cb3db39 (diff) | |
download | patches-6071b55e10b7b6e67d77ae058c8744834889e0b4.tar patches-6071b55e10b7b6e67d77ae058c8744834889e0b4.tar.gz |
nar: Really protect the temporary store directory from GC.
Prevents garbage collection of the temporary store directory while
restoring a file set, as it could previously happen:
<https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00167.html>.
* guix/nar.scm (temporary-store-directory): Rename to...
(temporary-store-file): ... this. Use 'add-permanent-root' instead of
'add-indirect-root'.
(with-temporary-store-file): New macro.
(restore-one-item): New procedure, with code formerly in
'restore-file-set'. Use 'with-temporary-store-file'.
(restore-file-set): Use it.
Diffstat (limited to 'gnu/packages')
0 files changed, 0 insertions, 0 deletions