guix-mirrors/guix/scripts/import
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
..
composer.scm guix: import: Add composer importer. 2023-12-18 23:16:28 +01:00
cpan.scm import: cpan: Support recursive imports. 2024-11-23 16:23:19 +01:00
cran.scm import/cran: Allow custom license prefix. 2022-12-31 14:48:46 +01:00
crate.scm import: crate: Comment out missing dependencies. 2025-02-09 18:20:41 +01:00
egg.scm
elm.scm import: Add Elm importer. 2022-05-22 01:07:52 +02:00
elpa.scm scripts: import: elpa: Unquote-splice package sexp contents. 2024-03-06 11:09:55 +01:00
gem.scm import: gem: Support importing a specific version of a gem. 2022-09-17 19:09:27 +02:00
gnu.scm gnupg: Automatically fallback to 'always policy when non-interactive. 2025-02-28 13:36:44 +09:00
go.scm import: go: Fix indentation in help message. 2024-07-01 21:57:13 +01:00
hackage.scm
hexpm.scm import: Add hex.pm importer. 2022-06-15 10:18:34 +02:00
json.scm
minetest.scm
npm-binary.scm import: Add binary npm importer. 2024-05-19 16:05:00 +02:00
opam.scm import: opam: Tweak doc for '--repo' option. 2023-04-08 23:48:00 +02:00
pypi.scm import: pypi: Use 'with-error-handling'. 2022-02-02 17:58:20 +01:00
stackage.scm
texlive.scm import: Enable recursive import for texlive packages. 2022-07-19 23:49:42 +02:00