summaryrefslogtreecommitdiff
path: root/guix/derivations.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-04-12 23:03:56 +0200
committerLudovic Courtès <ludo@gnu.org>2014-04-12 23:03:56 +0200
commit6071b55e10b7b6e67d77ae058c8744834889e0b4 (patch)
treedee0e6b1ede52661394989ea924c6f4ea3bd16a8 /guix/derivations.scm
parenta9d2a10546b128c3d6df5665ef6dab929cb3db39 (diff)
downloadguix-patches-6071b55e10b7b6e67d77ae058c8744834889e0b4.tar
guix-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 'guix/derivations.scm')
0 files changed, 0 insertions, 0 deletions