Keys listed twice when --keyring used - request to filter

David Shaw dshaw at jabberwocky.com
Mon Sep 12 17:56:01 CEST 2005


On Mon, Sep 12, 2005 at 09:09:48AM -0600, Kurt Fitzner wrote:
> I was probably unclear.  I didn't mean for changes for GPGME, but for
> GnuPG itself.
> 
> Any --keyring command given on the GnuPG command line causes GnuPG to
> consider another keyring, irrespective of whether or not that keyring
> has already been considered for other reasons.  For internal handling,
> this makes no difference, other than the fact GnuPG might take a few
> more milliseconds to complete a command.  But when, for example, you ask
> GnuPG to list keys, then GnuPG will happily list all the keys from its
> default keyring, and then from any other keyring specified on the
> command line, even if it has already listed them before.
> 
> What I am asking is that, when listing keys, GnuPG keep a simple talley
> of keyrings it has listed before and not list them twice.

If you want to avoid the default keyrings being listed twice, why not
just not supply them twice?  See the --no-default-keyring option.

David



More information about the Gnupg-devel mailing list