diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-03-05 22:21:01 +0900 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-03-05 22:44:15 +0900 |
commit | ec8e15584c3fd66d7d70cc2605a965172ed2642d (patch) | |
tree | a3d2807ebb94686a6a1a3e22b96e0685208eb92e | |
parent | 535cebc25a3da213fdd1230d9279f0ef10c61dd2 (diff) | |
download | guix-ec8e15584c3fd66d7d70cc2605a965172ed2642d.tar.gz guix-ec8e15584c3fd66d7d70cc2605a965172ed2642d.zip |
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
-rw-r--r-- | guix/scripts/refresh.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index a6589ae315..2d08607328 100644 --- a/guix/scripts/refresh.scm +++ b/guix/scripts/refresh.scm @@ -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 |