* Add support to apt-key to export keys to stdout. Thanks to "Dwayne
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 12 Sep 2007 20:05:19 +0000 (17:05 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 12 Sep 2007 20:05:19 +0000 (17:05 -0300)
  C. Litzenberger" <dlitz@dlitz.net> for the patch (closes: #441942)

cmdline/apt-key
debian/changelog
doc/apt-key.8.xml

index 90ecae2..3bd1a92 100755 (executable)
@@ -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 $*
index 0fff4f1..99eef4f 100644 (file)
@@ -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.
index eac6130..981fa20 100644 (file)
      </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>