diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-04-04 00:23:17 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-04-04 00:23:17 +0200 |
commit | ded1012f3c9f5d5e60481274c5b3280acc277b34 (patch) | |
tree | 59bb97da0ed7fc5ecb05dd085a222ad9282eb4ea /guix/scripts/archive.scm | |
parent | 7864504feb54449115e43b6d490f83ae0ca9c349 (diff) | |
download | gnu-guix-ded1012f3c9f5d5e60481274c5b3280acc277b34.tar gnu-guix-ded1012f3c9f5d5e60481274c5b3280acc277b34.tar.gz |
pki: Introduce 'write-acl', and fix wrong conversion in 'ensure-acl'.
* guix/pki.scm (write-acl): New procedure.
(ensure-acl): Use it. Fixes a regression introduced in 39831f1,
whereby 'ensure-acl' would yield a wrong-type-arg error.
* guix/scripts/archive.scm (authorize-key): Use 'write-acl'.
Diffstat (limited to 'guix/scripts/archive.scm')
-rw-r--r-- | guix/scripts/archive.scm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/guix/scripts/archive.scm b/guix/scripts/archive.scm index 90dc844281..0a2e186da6 100644 --- a/guix/scripts/archive.scm +++ b/guix/scripts/archive.scm @@ -288,9 +288,7 @@ the input port." (let ((acl (public-keys->acl (cons key (acl->public-keys acl))))) (mkdir-p (dirname %acl-file)) (with-atomic-file-output %acl-file - (lambda (port) - (display (canonical-sexp->string (sexp->canonical-sexp acl)) - port)))))) + (cut write-acl acl <>))))) (define (guix-archive . args) (define (parse-options) |