Skip to content

Commit

Permalink
Asset example change public key file
Browse files Browse the repository at this point in the history
The `examples/tests/assets.py.data/gnu_hello_signer.gpg` public key uses
`.gpg` type even though the key inside is PGP without any extensions.
Let's change this file type to more generic `.pgp` which will grant it
better compatibility without loosing any information.

Reference: #6111
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja committed Feb 7, 2025
1 parent 8e6fa62 commit 733cb18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tests/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUp(self):
def test_gpg_signature(self):
keyring = os.path.join(self.workdir, "tempring.gpg")
gpg_cmd = f"gpg --no-default-keyring --keyring {keyring}"
signer_pubkey = self.get_data("gnu_hello_signer.gpg")
signer_pubkey = self.get_data("gnu_hello_signer.pgp")
import_cmd = f"{gpg_cmd} --import {signer_pubkey}"
# gpg will not return 0 when creating a new keyring and
# importing the public key
Expand Down

0 comments on commit 733cb18

Please sign in to comment.