Commit f146997 ignore STATUS_KEY_CONSIDERED when editing

3 files Authored and Committed by ignatenkobrain a year ago
ignore STATUS_KEY_CONSIDERED when editing

KEY_CONSIDERED has 2 meanings:
* The key has not been selected
* All subkeys of the key are expired or have been revoked

Both of them are definitely good candidates for ignoring for edit utils.

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=ff71521d9698c7c5df94831a1398e948213af433
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commit;h=315fb73d4a774e2c699ac1804f5377559b4d0027

References: https://bugzilla.redhat.com/show_bug.cgi?id=1359521
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>

    
 1 @@ -60,7 +60,8 @@
 2                             gpgme.STATUS_KEYEXPIRED,
 3                             gpgme.STATUS_PROGRESS,
 4                             gpgme.STATUS_KEY_CREATED,
 5 -                           gpgme.STATUS_ALREADY_SIGNED):
 6 +                           gpgme.STATUS_ALREADY_SIGNED,
 7 +                           gpgme.STATUS_KEY_CONSIDERED):
 8                   return
 9               try:
10                   data = gen.send((status, args))
1 @@ -141,6 +141,7 @@
2     CONST(STATUS_POLICY_URL),
3     CONST(STATUS_BEGIN_STREAM),
4     CONST(STATUS_END_STREAM),
5 +   CONST(STATUS_KEY_CONSIDERED),
6     CONST(STATUS_KEY_CREATED),
7     CONST(STATUS_USERID_HINT),
8     CONST(STATUS_UNEXPECTED),
 1 @@ -32,7 +32,9 @@
 2                      'signonly.pub', 'signonly.sec']
 3   
 4       def edit_quit_cb(self, status, args, fd):
 5 -         if status in [gpgme.STATUS_EOF, gpgme.STATUS_GOT_IT]:
 6 +         if status in [gpgme.STATUS_EOF,
 7 +                       gpgme.STATUS_GOT_IT,
 8 +                       gpgme.STATUS_KEY_CONSIDERED]:
 9               return
10           self.status = status
11           self.args = args