From ec8e15584c3fd66d7d70cc2605a965172ed2642d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 5 Mar 2025 22:21:01 +0900 Subject: [PATCH] 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 --- guix/scripts/refresh.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/scripts/refresh.scm b/guix/scripts/refresh.scm index a6589ae3152..2d086073284 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