1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpg: Avoid debug like output at start of --edit-key.

* g10/keyedit.c (check_all_keysigs): Print info only after something
has been modified.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-04-19 17:45:27 +02:00
parent 6272f24312
commit 085b19fc9a
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -752,7 +752,9 @@ check_all_keysigs (KBNODE kb, int only_selected, int only_selfsigs)
else else
last_printed_component = current_component; last_printed_component = current_component;
if (last_printed_component->pkt->pkttype == PKT_USER_ID) if (!modified)
;
else if (last_printed_component->pkt->pkttype == PKT_USER_ID)
{ {
tty_printf ("uid "); tty_printf ("uid ");
tty_print_utf8_string (last_printed_component tty_print_utf8_string (last_printed_component
@ -770,11 +772,15 @@ check_all_keysigs (KBNODE kb, int only_selected, int only_selfsigs)
pk_keyid_str (last_printed_component pk_keyid_str (last_printed_component
->pkt->pkt.public_key)); ->pkt->pkt.public_key));
if (modified)
{
if (is_reordered) if (is_reordered)
tty_printf (_(" (reordered signatures follow)")); tty_printf (_(" (reordered signatures follow)"));
tty_printf ("\n"); tty_printf ("\n");
} }
}
if (modified)
print_one_sig (rc, kb, n, NULL, NULL, NULL, has_selfsig, print_one_sig (rc, kb, n, NULL, NULL, NULL, has_selfsig,
0, only_selfsigs); 0, only_selfsigs);
} }