1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* card-util.c, delkey.c, keygen.c, plaintext.c, keyedit.c, passphrase.c,

revoke.c: Collapse the two different "can't do that in batch mode" strings
into one.
This commit is contained in:
David Shaw 2004-10-28 03:57:30 +00:00
parent f5b7a72a48
commit f15e944b98
8 changed files with 27 additions and 19 deletions

View file

@ -211,10 +211,11 @@ gen_desig_revoke( const char *uname )
u32 keyid[2];
int i,any=0;
if( opt.batch ) {
log_error(_("sorry, can't do this in batch mode\n"));
if( opt.batch )
{
log_error(_("can't do this in batch mode\n"));
return G10ERR_GENERAL;
}
}
memset( &afx, 0, sizeof afx);
@ -411,10 +412,11 @@ gen_revoke( const char *uname )
struct revocation_reason_info *reason = NULL;
KEYDB_SEARCH_DESC desc;
if( opt.batch ) {
log_error(_("sorry, can't do this in batch mode\n"));
if( opt.batch )
{
log_error(_("can't do this in batch mode\n"));
return G10ERR_GENERAL;
}
}
memset( &afx, 0, sizeof afx);
init_packet( &pkt );