deduplication: Fix default value of #:store in 'deduplicate'.

* guix/store/deduplication.scm (deduplicate): Change #:store default
value to (%store-directory).
This commit is contained in:
Ludovic Courtès 2020-06-25 10:15:38 +02:00
parent d52e16d3b6
commit 6b654a3332
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ Note: TARGET, TO-REPLACE, and SWAP-DIRECTORY must be on the same file system."
(unless (= EMLINK (system-error-errno args))
(apply throw args)))))))
(define* (deduplicate path hash #:key (store %store-directory))
(define* (deduplicate path hash #:key (store (%store-directory)))
"Check if a store item with sha256 hash HASH already exists. If so,
replace PATH with a hardlink to the already-existing one. If not, register
PATH so that future duplicates can hardlink to it. PATH is assumed to be