diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-04-01 23:46:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-04-01 23:47:51 +0200 |
commit | 39831f16633254d5eb28065d5132945bfe210152 (patch) | |
tree | 582a4480d01b35c0a97426db171a6d55dd90d2ee /guix/scripts/archive.scm | |
parent | 57832f2ce79ca9817d1de9766edd09dac225f6df (diff) | |
download | gnu-guix-39831f16633254d5eb28065d5132945bfe210152.tar gnu-guix-39831f16633254d5eb28065d5132945bfe210152.tar.gz |
pki: Keep ACL in native sexp format to speed up 'authorized-key?'.
* guix/pki.scm (acl-entry-sexp, acl-sexp): Remove.
(public-keys->acl, current-acl): Return a native sexp.
(acl->public-keys, authorized-key?): Expect ACL to be a native sexp.
* guix/scripts/archive.scm (authorize-key): Convert ACL to
canonical-sexp when writing it.
Diffstat (limited to 'guix/scripts/archive.scm')
-rw-r--r-- | guix/scripts/archive.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/scripts/archive.scm b/guix/scripts/archive.scm index 0f9e4d8360..90dc844281 100644 --- a/guix/scripts/archive.scm +++ b/guix/scripts/archive.scm @@ -289,7 +289,8 @@ the input port." (mkdir-p (dirname %acl-file)) (with-atomic-file-output %acl-file (lambda (port) - (display (canonical-sexp->string acl) port)))))) + (display (canonical-sexp->string (sexp->canonical-sexp acl)) + port)))))) (define (guix-archive . args) (define (parse-options) |