~ruther/guix-local

ec8e15584c3fd66d7d70cc2605a965172ed2642d — Maxim Cournoyer 1 year, 4 months ago 535cebc
refresh: Set default value of `key-download' option to 'auto.

This is a follow-up to commit 79a46d6537 ("gnupg: Automatically fallback to
'always policy when non-interactive."), which introduced the following
problem:

  guix refresh --update libvirt
   -> guix refresh: error: invalid key-download policy: #f

* guix/scripts/refresh.scm (%default-options): Set default key-download option
value to 'auto.
(%options): Accept auto as a valid value from the command line.

Change-Id: I45ceee8e07d1a3a3c377e12ed017813f92289565
1 files changed, 2 insertions(+), 2 deletions(-)

M guix/scripts/refresh.scm
M guix/scripts/refresh.scm => guix/scripts/refresh.scm +2 -2
@@ 61,7 61,7 @@

(define %default-options
  ;; Alist of default option values.
  '())
  '((key-download . auto)))

(define %options
  ;; Specification of the command-line options.


@@ 135,7 135,7 @@
        (option '("key-download") #t #f
                (lambda (opt name arg result)
                  (match arg
                    ((or "interactive" "always" "never")
                    ((or "auto" "interactive" "always" "never")
                     (alist-cons 'key-download (string->symbol arg)
                                 result))
                    (x