FS#65240 - Allow repo-{add,remove} with key "Foo Bar <foo@bar.com>"
Attached to Project:
Pacman
Opened by Johannes Ernst (jernst) - Wednesday, 22 January 2020, 21:11 GMT
Last edited by Allan McRae (Allan) - Friday, 23 December 2022, 15:03 GMT
Opened by Johannes Ernst (jernst) - Wednesday, 22 January 2020, 21:11 GMT
Last edited by Allan McRae (Allan) - Friday, 23 December 2022, 15:03 GMT
|
Details
Recently makepkg has started to emit a warning when the
PACKAGER is only an e-mail address ("foo@bar.com") and does not specify a composite with a name ("Foo Bar
<foo@bar.com>").
It would be nice if repo-{add,remove} could use the same value as makepkg's PACKAGER for argument --key, e.g. repo-add -k "Foo Bar <foo@bar.com>" ... This currently fails due to invalid string splitting somewhere in the bash script (create-signature, var SIGNWITHKEY). |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 23 December 2022, 15:03 GMT
Reason for closing: Fixed
Additional comments about closing: GPGKEY takes the varied format. PACKAGER is a different field.
Friday, 23 December 2022, 15:03 GMT
Reason for closing: Fixed
Additional comments about closing: GPGKEY takes the varied format. PACKAGER is a different field.
if ! gpg --list-key ${GPGKEY} &>/dev/null; then
and
if [[ -n $GPGKEY ]]; then
SIGNWITHKEY="-u ${GPGKEY}"
fi
gpg --detach-sign --use-agent ${SIGNWITHKEY} --no-armor "$filename" &>/dev/null || ret=$?
It's actually the same code used for both, with trivial formatting differences and message output tweaks.
This still doesn't have anything to do with PACKAGER though.