grafts: Preserve the cache across recursive calls.
authorLudovic Courtès <ludo@gnu.org>
Mon, 16 Jan 2017 21:05:43 +0000 (22:05 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 16 Jan 2017 21:13:21 +0000 (22:13 +0100)
commit0aeed5e310504a9ef2cf6a2b2a7e76086eb8c2fc
tree30be573ed389e58aca9dd81bb8add6d59ed22a92
parent90ad5c8836138b7fd4d1bd0243dfa8b30ae0cf21
grafts: Preserve the cache across recursive calls.

Before this commit, we'd lose the cache across recursive calls to
'cumulative-grafts', which isn't great performance-wise.

This bug was already present before
d38bc9a9f6feefc465964531520fee5663a12f48.

* guix/grafts.scm (with-cache): In the miss case, call 'current-state'
after EXP has been evaluated.
guix/grafts.scm