Remove obsolete --secret-keyring option

Dear keyring maintainers,

Issue

BTS: #1118566

Currently keyring.debian.org lookup with op=get shows:

gpg: WARNING: "--secret-keyring" is an obsolete option - it has no effect

image

Example: https://keyring.debian.org/pks/lookup?op=get&search=0xD3D7A23522B641FB78ACC775000001EFCF1A50FA

Researches

The related removal code of the secret keyring and its option --secret-keyring in GnuPG was written in 2010.

These removal changes were released at 2014, with GnuPG 2.1.0.

Effected versions

The option --secret-keyring was functional up to GnuPG 2.0 (2.0.31 as of 2017-12-30).

It has been ignored since GnuPG 2.1.0 (2014-11-06).

It now triggers a warning in the following versions, due to the fix for upstream bug T2749:

  • 2.2.31 <= gnupg < 2.3.0
  • 2.3.3 <= gnupg

Therefore, I believe the option --secret-keyring can be safely removed safely if keyring debian.org uses gnupg >= 2.1.0.

Solution

In the commit, I removed --secret-keyring option.

Edited by Jongmin Kim

Merge request reports

Loading