Hi!
[ I discussed this with Julian on IRC some time ago, but forgot to
forward that here, doing that now, and this report was used as a
reference somewhere else, so better to clarify things here. ]
I think that to keep using .gpg is worse, because I don't think there's
even a MIME type for .gpg? At least none that I could see in the
/etc/mime.types anyway. For example file --mime-types returns the correct
thing anyway.
My take is that the MIME definition is not exhaustive, so I don't see a
conflict if it's "missing types". And my perception is that MIME types
get registered after demonstrated usage?
Julian asked if file did application/pgp-keys for .pgp keys, and this
was my reply:
$ file --mime-type /usr/share/keyrings/debian-archive-trixie-automatic.pgp
/usr/share/keyrings/debian-archive-trixie-automatic.pgp: application/pgp-keys
It just checks the contents the same with a .gpg one for example:
$ file --mime-type /usr/share/keyrings/debian-maintainers.gpg
/usr/share/keyrings/debian-maintainers.gpg: application/pgp-keys
So I don't see much of a problem here, and I think it would be best if we
could move away from this naming pattern, as that entrenches GnuPG usage
as a synonym for OpenPGP which seems rather unfortunate.
And for example for the apt modernize stuff I think it would be great if
it could check whether the current pathname referred is a symlink and
then use that (or perhaps if the symlink target is named .pgp if you want
to be more specific).
Julian then replied that the code could be made to just look for a
.pgp first.
Thanks,
Guillem