]> git.saurik.com Git - apt.git/commitdiff
* 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 90ecae2cf543440ae5e93e070254c0f4372b1356..3bd1a92d9c838ed847a4a086afb448fbba5eed1b 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 0fff4f1464f2bec7f60ca61a60b398ba92dd6240..99eef4f011e9ad01d1e31184213effb8e9316ce4 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 eac61307da2e9e80590933b52be82fd08efe99b7..981fa208c0600777e1254db85602d75b4baf95f9 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>