diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-08-25 00:16:49 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-08-25 00:16:49 +0200 |
commit | c6df09941b9fb225788e9efa276b7aa92e19d3c0 (patch) | |
tree | cc23035709113272f728a94d58f1768810cfce2d /guix/nar.scm | |
parent | bcac69f674ce1525c263632ba796297b850b5147 (diff) |
guix-register: By default, attempt to deduplicate registered items.
* nix/guix-register/guix-register.cc (GUIX_OPT_DEDUPLICATE): New macro.
(options): Add --no-deduplication.
(deduplication): New variable.
(parse_opt): Handle GUIX_OPT_DEDUPLICATE.
(register_validity): Add 'optimize' parameter and honor it.
(main): Move 'store' instanatiation after 'settings.nixStore'
assignment.
* tests/guix-register.sh: Add test for deduplication.
* guix/nar.scm (finalize-store-file): Update comment above
'register-path' call.
Diffstat (limited to 'guix/nar.scm')
-rw-r--r-- | guix/nar.scm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guix/nar.scm b/guix/nar.scm index 0a7187c2dd..b95cbd648d 100644 --- a/guix/nar.scm +++ b/guix/nar.scm @@ -324,8 +324,7 @@ held." (rename-file source target) ;; Register TARGET. As a side effect, it resets the timestamps of all - ;; its files, recursively. However, it doesn't attempt to deduplicate - ;; its files like 'importPaths' does (FIXME). + ;; its files, recursively, and runs a deduplication pass. (register-path target #:references references #:deriver deriver)) |