From: Otavio Salvador Date: Wed, 12 Sep 2007 20:05:19 +0000 (-0300) Subject: * Add support to apt-key to export keys to stdout. Thanks to "Dwayne X-Git-Tag: 0.7.21~227^2~10 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/bf6d5b428e247dd28fb593cc3677da4e5eee0a54 * Add support to apt-key to export keys to stdout. Thanks to "Dwayne C. Litzenberger" for the patch (closes: #441942) --- diff --git a/cmdline/apt-key b/cmdline/apt-key index 90ecae2cf..3bd1a92d9 100755 --- a/cmdline/apt-key +++ b/cmdline/apt-key @@ -39,6 +39,8 @@ usage() { echo echo " apt-key add - add the key contained in ('-' for stdin)" echo " apt-key del - remove the key " + echo " apt-key export - output the key " + echo " apt-key exportall - output all trusted keys" echo " apt-key update - update keys using the keyring package" echo " apt-key list - list keys" echo @@ -75,6 +77,12 @@ case "$command" in finger*) $GPG --batch --fingerprint ;; + export) + $GPG --armor --export "$1" + ;; + exportall) + $GPG --armor --export + ;; adv*) echo "Executing: $GPG $*" $GPG $* diff --git a/debian/changelog b/debian/changelog index 0fff4f146..99eef4f01 100644 --- a/debian/changelog +++ b/debian/changelog @@ -39,6 +39,8 @@ apt (0.7.7) UNRELEASED; urgency=low (closes: #436055) * Reset curl options and timestamp between downloaded files. Thanks to Ryan Murray for the patch (closes: #437150) + * Add support to apt-key to export keys to stdout. Thanks to "Dwayne + C. Litzenberger" for the patch (closes: #441942) [ Ian Jackson ] * dpkg-triggers: Deal properly with new package states. diff --git a/doc/apt-key.8.xml b/doc/apt-key.8.xml index eac61307d..981fa208c 100644 --- a/doc/apt-key.8.xml +++ b/doc/apt-key.8.xml @@ -63,6 +63,28 @@ + export keyid + + + + Output the key keyid to standard output. + + + + + + + exportall + + + + Output all trusted keys to standard output. + + + + + + list