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
This commit is contained in:
Maxim Cournoyer 2025-03-05 22:21:01 +09:00
parent 535cebc25a
commit ec8e15584c
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -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