[pacman-dev] [PATCH 2/4] pacman-key: Use --yes to confirm lsign-key
Pierre Schmitz
pierre at archlinux.de
Sun Mar 25 08:10:40 EDT 2012
We can just use --yes in batch mode. Also piping "y" two times was unnecessary.
We also no longer need to use LANG=C for this call.
Signed-off-by: Pierre Schmitz <pierre at archlinux.de>
---
scripts/pacman-key.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in
index 32c70dc..46773ac 100644
--- a/scripts/pacman-key.sh.in
+++ b/scripts/pacman-key.sh.in
@@ -413,7 +413,7 @@ list_sigs() {
lsign_keys() {
check_keyids_exist
- printf 'y\ny\n' | LANG=C "${GPG_PACMAN[@]}" --command-fd 0 --quiet --batch --lsign-key "${KEYIDS[@]}" 2>/dev/null
+ "${GPG_PACMAN[@]}" --yes --quiet --batch --lsign-key "${KEYIDS[@]}" 2>/dev/null
if (( PIPESTATUS[1] )); then
error "$(gettext "A specified key could not be locally signed.")"
exit 1
--
1.7.9.4
More information about the pacman-dev
mailing list