From bf6d5b428e247dd28fb593cc3677da4e5eee0a54 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 12 Sep 2007 17:05:19 -0300 Subject: [PATCH] * Add support to apt-key to export keys to stdout. Thanks to "Dwayne C. Litzenberger" for the patch (closes: #441942) --- cmdline/apt-key | 8 ++++++++ debian/changelog | 2 ++ doc/apt-key.8.xml | 22 ++++++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/cmdline/apt-key b/cmdline/apt-key index 90ecae2c..3bd1a92d 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 0fff4f14..99eef4f0 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 eac61307..981fa208 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 -- 2.20.1