[Pkg-gnupg-maint] Bug#735363: [PATCH] init trustdb before trying to clear it

Dominic Hargreaves dom at earth.li
Tue Jan 28 19:41:32 UTC 2014


Control: tags -1 + patch

On Mon, Jan 20, 2014 at 10:15:21PM -0500, Daniel Kahn Gillmor wrote:
> This avoids failure when importing with --always-trust on gpg 1.4.16,
> as reported in http://bugs.debian.org/735363
> ---
>  g10/trustdb.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/g10/trustdb.c b/g10/trustdb.c
> index 0bf92e4..828b90f 100644
> --- a/g10/trustdb.c
> +++ b/g10/trustdb.c
> @@ -927,6 +927,8 @@ clear_ownertrusts (PKT_public_key *pk)
>    TRUSTREC rec;
>    int rc;
>  
> +  init_trustdb();
> +
>    if (trustdb_args.no_trustdb && opt.trust_model == TM_ALWAYS)
>      return 0;

I can confirm that this patch fixes the failures seen building
request-tracker4. However, I am not in a position to assert its
correctness - so it would be excellent if someone more familiar with
the code could do so! And if the package maintainer desires, I can 
help with an NMU.

Cheers,
Dominic.



More information about the Pkg-gnupg-maint mailing list