dump gpg --import error spew to /dev/null during hackish uses of gpg
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 19 Jan 2010 08:03:26 +0000 (03:03 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 19 Jan 2010 08:03:26 +0000 (03:03 -0500)
src/share/common

index 21f30656526c2684f49a7d5c54f883fb2f6424a3..e735319800f36930fa26c0d488d59534254f4811 100644 (file)
@@ -1200,7 +1200,7 @@ process_authorized_user_ids() {
 list_primary_fingerprints() {
     local fake=$(msmktempdir)
     trap "rm -rf $fake" EXIT
-    GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict
+    GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict 2>/dev/null
     GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys | \
        awk -F: '/^fpr:/{ print $10 }'
     trap - EXIT
@@ -1213,7 +1213,7 @@ list_primary_fingerprints() {
 get_cert_info() {
     local fake=$(msmktempdir)
     trap "rm -rf $fake" EXIT
-    GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict
+    GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict 2>/dev/null
     GNUPGHOME="$fake" gpg --with-colons --fingerprint --fixed-list-mode --list-keys "$1"
     trap - EXIT
     rm -rf "$fake"