summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2007-09-12 17:05:19 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2007-09-12 17:05:19 -0300
commitbf6d5b428e247dd28fb593cc3677da4e5eee0a54 (patch)
tree373ce28ef148d37ce981aad31a11acd925feae7a
parent60504a4198070671b2c4fe7045564f1d7a228f71 (diff)
* Add support to apt-key to export keys to stdout. Thanks to "Dwayne
C. Litzenberger" <dlitz@dlitz.net> for the patch (closes: #441942)
-rwxr-xr-xcmdline/apt-key8
-rw-r--r--debian/changelog2
-rw-r--r--doc/apt-key.8.xml22
3 files changed, 32 insertions, 0 deletions
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 <file> - add the key contained in <file> ('-' for stdin)"
echo " apt-key del <keyid> - remove the key <keyid>"
+ echo " apt-key export <keyid> - output the key <keyid>"
+ 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 <rmurray@debian.org> for the patch (closes: #437150)
+ * Add support to apt-key to export keys to stdout. Thanks to "Dwayne
+ C. Litzenberger" <dlitz@dlitz.net> 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 @@
</listitem>
</varlistentry>
+ <varlistentry><term>export <replaceable>keyid</replaceable></term>
+ <listitem>
+ <para>
+
+ Output the key <replaceable>keyid</replaceable> to standard output.
+
+ </para>
+
+ </listitem>
+ </varlistentry>
+
+ <varlistentry><term>exportall</term>
+ <listitem>
+ <para>
+
+ Output all trusted keys to standard output.
+
+ </para>
+
+ </listitem>
+ </varlistentry>
+
<varlistentry><term>list</term>
<listitem>
<para>