Add (guix store deduplication).
authorCaleb Ristvedt <caleb.ristvedt@cune.org>
Sun, 27 May 2018 21:20:54 +0000 (23:20 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 1 Jun 2018 13:35:54 +0000 (15:35 +0200)
commitbf5bf5778cb7c3a2475c6acd707abc925b1819aa
tree34f209fea10a40e45468ecbc4ad15c46905df114
parent285cc75c3160421005ba0181490de4b290755b63
Add (guix store deduplication).

* guix/store/database.scm (register-path): Add #:deduplicate? and call
'deduplicate' when it's true.
(counting-wrapper-port, nar-sha256): Move to...
* guix/store/deduplication.scm: ... here.  New file.
* tests/store-deduplication.scm: New file.
* Makefile.am (STORE_MODULES): Add deduplication.scm.
(SCM_TESTS) [HAVE_GUILE_SQLITE3]: Add store-deduplication.scm.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Makefile.am
guix/store/database.scm
guix/store/deduplication.scm [new file with mode: 0644]
tests/store-deduplication.scm [new file with mode: 0644]