[pacman-dev] [PATCH 1/2] pacman-key: Use lsign_keys function in --populate

Pierre Schmitz pierre at archlinux.de
Mon Jun 18 10:48:22 EDT 2012

Am 18.06.2012 16:46, schrieb Pierre Schmitz:
>  lsign_keys() {
>  	check_keyids_exist
> +	# we cannot use --yes here as gpg would still ask for confirmation
> if a key has more than one uid
>  	printf 'y\ny\n' | LANG=C "${GPG_PACMAN[@]}" --command-fd 0 --quiet
> --batch --lsign-key "$@" 2>/dev/null
>  	if (( PIPESTATUS[1] )); then
>  		error "$(gettext "A specified key could not be locally signed.")"

Just a note: This function looks like it would accept more than one
keyid, but it seems gpg wont handle that.

Pierre Schmitz, https://pierre-schmitz.com

More information about the pacman-dev mailing list