mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
535cebc25a
commit
ec8e15584c
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
(define %default-options
|
(define %default-options
|
||||||
;; Alist of default option values.
|
;; Alist of default option values.
|
||||||
'())
|
'((key-download . auto)))
|
||||||
|
|
||||||
(define %options
|
(define %options
|
||||||
;; Specification of the command-line options.
|
;; Specification of the command-line options.
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
(option '("key-download") #t #f
|
(option '("key-download") #t #f
|
||||||
(lambda (opt name arg result)
|
(lambda (opt name arg result)
|
||||||
(match arg
|
(match arg
|
||||||
((or "interactive" "always" "never")
|
((or "auto" "interactive" "always" "never")
|
||||||
(alist-cons 'key-download (string->symbol arg)
|
(alist-cons 'key-download (string->symbol arg)
|
||||||
result))
|
result))
|
||||||
(x
|
(x
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue