From e1853a59e0421ee61b5066179632b9fc31116717 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 19 Jan 2010 02:36:20 -0500 Subject: [PATCH] ignoring time conflict when extracting info in a hacky way from gpg. warnings still come out to stderr --- src/share/common | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/share/common b/src/share/common index 039c06c..21f3065 100644 --- a/src/share/common +++ b/src/share/common @@ -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 + GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys | \ awk -F: '/^fpr:/{ print $10 }' trap - EXIT @@ -1213,8 +1213,8 @@ list_primary_fingerprints() { get_cert_info() { local fake=$(msmktempdir) trap "rm -rf $fake" EXIT - GNUPGHOME="$fake" gpg --no-tty --quiet --import - GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys "$1" + GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict + GNUPGHOME="$fake" gpg --with-colons --fingerprint --fixed-list-mode --list-keys "$1" trap - EXIT rm -rf "$fake" } -- 2.26.2