mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
* import.c (import_print_stats): Print new non_imported counter
which is currently not used becuase we terminate on errors.
This commit is contained in:
parent
cda3b913db
commit
c7dfa3a8d2
@ -1,3 +1,8 @@
|
|||||||
|
2002-08-21 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* import.c (import_print_stats): Print new non_imported counter
|
||||||
|
which is currently not used becuase we terminate on errors.
|
||||||
|
|
||||||
2002-08-20 David Shaw <dshaw@jabberwocky.com>
|
2002-08-20 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* options.skel: Document no-include-attributes for
|
* options.skel: Document no-include-attributes for
|
||||||
|
12
g10/import.c
12
g10/import.c
@ -52,6 +52,7 @@ struct stats_s {
|
|||||||
ulong secret_imported;
|
ulong secret_imported;
|
||||||
ulong secret_dups;
|
ulong secret_dups;
|
||||||
ulong skipped_new_keys;
|
ulong skipped_new_keys;
|
||||||
|
ulong not_imported;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -258,6 +259,8 @@ import( IOBUF inp, int fast, const char* fname,
|
|||||||
keyblock->pkt->pkttype );
|
keyblock->pkt->pkttype );
|
||||||
}
|
}
|
||||||
release_kbnode(keyblock);
|
release_kbnode(keyblock);
|
||||||
|
/* fixme: we should increment the not imported counter but this
|
||||||
|
does only make sense if we keep on going despite of errors. */
|
||||||
if( rc )
|
if( rc )
|
||||||
break;
|
break;
|
||||||
if( !(++stats->count % 100) && !opt.quiet )
|
if( !(++stats->count % 100) && !opt.quiet )
|
||||||
@ -306,11 +309,13 @@ import_print_stats (void *hd)
|
|||||||
log_info(_(" secret keys imported: %lu\n"), stats->secret_imported );
|
log_info(_(" secret keys imported: %lu\n"), stats->secret_imported );
|
||||||
if( stats->secret_dups )
|
if( stats->secret_dups )
|
||||||
log_info(_(" secret keys unchanged: %lu\n"), stats->secret_dups );
|
log_info(_(" secret keys unchanged: %lu\n"), stats->secret_dups );
|
||||||
|
if( stats->not_imported )
|
||||||
|
log_info(_(" not imported: %lu\n"), stats->not_imported );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( is_status_enabled() ) {
|
if( is_status_enabled() ) {
|
||||||
char buf[13*20];
|
char buf[14*20];
|
||||||
sprintf(buf, "%lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu",
|
sprintf(buf, "%lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu",
|
||||||
stats->count,
|
stats->count,
|
||||||
stats->no_user_id,
|
stats->no_user_id,
|
||||||
stats->imported,
|
stats->imported,
|
||||||
@ -323,7 +328,8 @@ import_print_stats (void *hd)
|
|||||||
stats->secret_read,
|
stats->secret_read,
|
||||||
stats->secret_imported,
|
stats->secret_imported,
|
||||||
stats->secret_dups,
|
stats->secret_dups,
|
||||||
stats->skipped_new_keys );
|
stats->skipped_new_keys,
|
||||||
|
stats->not_imported );
|
||||||
write_status_text( STATUS_IMPORT_RES, buf );
|
write_status_text( STATUS_IMPORT_RES, buf );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user