guix archive: Make sure $sysconfdir/guix exists in '--authorize'.

* guix/scripts/archive.scm (authorize-key): Add 'mkdir-p' call.
  Reported by Alex Sassmannshausen <alex.sassmannshausen@gmail.com>.
master
Ludovic Courtès 2014-03-31 21:53:51 +02:00
parent ef27aa9c8c
commit de28fefd77
1 changed files with 1 additions and 0 deletions

View File

@ -286,6 +286,7 @@ the input port."
;; Add KEY to the ACL and write that.
(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 acl) port))))))