[pacman-dev] [PATCH] pacman-key: reduce verbosity of --populate
From: Pierre Schmitz <pierre@archlinux.de> Do not bother the user with gpg's verbose output. Signed-off-by: Pierre Schmitz <pierre@archlinux.de> --- This is a reduced version of the earlier patch sent by Pierre. It removes the 2>/dev/null from the --import-ownertrust line as we never hide "error" output. It would be better to ask upstream gpg to move that to stdout - then we can hide it. Also that output is only ever shown on the install of the keyring package and not in an upgrade (provided the ownertrust does not change...). The --quiet added here only hides the output of the list of keys being imported from the keyring file. Those people who are interested enough to go through that output in detail can still look directly at the keyring file. scripts/pacman-key.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 9561c7f..bd02d01 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman-key.sh.in @@ -277,7 +277,7 @@ populate_keyring() { # Add keys from requested keyrings for keyring in "${KEYRINGIDS[@]}"; do msg "$(gettext "Appending keys from %s.gpg...")" "$keyring" - "${GPG_PACMAN[@]}" --import "${KEYRING_IMPORT_DIR}/${keyring}.gpg" + "${GPG_PACMAN[@]}" --quiet --import "${KEYRING_IMPORT_DIR}/${keyring}.gpg" done # Read the trusted key IDs to an array. Because this is an ownertrust -- 1.8.1
participants (1)
-
Allan McRae