nar: Really really protect the temporary store directory from GC.
authorLudovic Courtès <ludo@gnu.org>
Mon, 21 Apr 2014 21:23:34 +0000 (23:23 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 21 Apr 2014 21:24:23 +0000 (23:24 +0200)
commit50db7d82b3f3ab8ec382132b06a1400c0044b89e
tree8469b67270c8e189923a1c86a66f83f94d8e106a
parentace6924327142c8557349e7c52c594f71a6c079b
nar: Really really protect the temporary store directory from GC.

This is a follow-up to 6071b55e10b7b6e67d77ae058c8744834889e0b4.
See <https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00167.html>
for the original report, and
<https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00198.html>
for an alternate solution that has been discussed.

* guix/nar.scm (temporary-store-file): Remove call to
  'add-permanent-root'; don't loop.
  (with-temporary-store-file): Rewrite using 'with-store' and
  'add-temp-root'.
guix/nar.scm