guix-mirrors/etc
Maxim Cournoyer 79a46d6537
gnupg: Automatically fallback to 'always policy when non-interactive.
Previously to this change, the 'guix refresh' download
policy (--key-download)would default to 'interactive', which would throw a
backtrace when guix was invoked with its stdin not connected to a peusdo
terminal (tty).  This change makes the new default value 'auto' use
interactive only in an interactive environment, with 'always' used as
fallback.

* doc/guix.texi (Invoking guix refresh): Adjust doc.
* etc/completion/fish/guix.fish: Adjust accordingly.
* etc/completion/zsh/_guix (_guix_list_installed_packages): Likewise.
* guix/gnupg.scm (gnupg-verify*): Change default #:key-download argument value
to 'auto.  Update doc.  Validate argument.  Raise an error in case read-line
returns #<eof>.
* guix/import/gnu.scm (gnu-package->sexp): <#:key-download>: Change default
value to 'auto.
* guix/import/gnu.scm (gnu->guix-package): <#:key-download>: Likewise.
* guix/scripts/import/gnu.scm (%options): Add "auto" to accepted
--key-download values.
(%default-options): Set default key-download option to the 'auto value.
(show-help): Update doc.
* guix/scripts/refresh.scm (show-help): Update doc.
(update-package) <#:key-download>: Change default value to 'auto.  Update doc.
* guix/upstream.scm (download-tarball): <#:key-download>: Likewise.
(package-update): Likewise.

Change-Id: Id1ca8fd6d453ca4bc5b372534445e3beab9133a8
Fixes: https://issues.guix.gnu.org/76112
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
2025-02-28 13:36:44 +09:00
..
completion gnupg: Automatically fallback to 'always policy when non-interactive. 2025-02-28 13:36:44 +09:00
git etc: Update the commit-msg hook. 2025-02-22 23:55:24 +09:00
init.d etc: Add explicit ‘--substitute-urls’ in guix-daemon service files. 2024-06-26 22:59:55 +02:00
manifests tests: Fix system tests source path 2025-02-22 23:55:24 +09:00
openrc guix-install.sh: Prompt for configuring substitutes discovery. 2021-07-07 23:54:20 -04:00
snippets etc: snippets: Improve usability of tempel phases snippets. 2025-01-16 08:42:05 +01:00
substitutes etc: Add "bordeaux.guix.gnu.org.pub" public key file. 2021-06-07 11:31:17 +01:00
teams teams: gnome: Add gnome-extension-manifest. 2025-01-16 08:41:01 +01:00
committer.scm.in committer: Fix for inputs that are lists by using object->string. 2024-10-15 18:40:09 +02:00
copyright.el etc: Add copyright. 2020-02-22 17:56:31 +03:00
gnu-store.mount.in etc: Add a systemd unit to bind-mount @storedir@ read-only. 2020-05-16 15:37:41 +02:00
guix-daemon.cil.in etc: SELinux: Update policy file. 2023-05-25 12:51:15 +02:00
guix-daemon.conf.in etc: Add explicit ‘--substitute-urls’ in guix-daemon service files. 2024-06-26 22:59:55 +02:00
guix-daemon.service.in etc: Add explicit ‘--substitute-urls’ in guix-daemon service files. 2024-06-26 22:59:55 +02:00
guix-gc.service.in etc: Add systemd files for running ‘guix gc’ periodically 2021-09-20 14:18:21 +00:00
guix-gc.timer etc: Add systemd files for running ‘guix gc’ periodically 2021-09-20 14:18:21 +00:00
guix-install.sh guix-install.sh: Convert sysv-init to SYSV_INIT_REQUIRE to match variable name. 2025-02-28 13:36:44 +09:00
guix-publish.conf.in build: Binary tarball now populates the "current-guix" profile. 2018-11-23 15:42:01 +01:00
guix-publish.service.in etc: systemd services: switch to "journal" for output and error logging. 2024-03-11 14:34:25 -07:00
historical-authorizations Add 'etc/historical-authorizations'. 2020-07-11 11:51:56 +02:00
news.scm news: Add 'de' translation. 2025-02-23 09:10:01 +01:00
teams.scm teams: Remove Marius Bakke from teams due to inactivity. 2025-02-22 22:45:24 -05:00