Skip to content

allow specifying multiple pgp keys to the cli#37

Closed
Jturnerusa wants to merge 1 commit into
gentoo:masterfrom
Jturnerusa:feature/multiple-keyrings
Closed

allow specifying multiple pgp keys to the cli#37
Jturnerusa wants to merge 1 commit into
gentoo:masterfrom
Jturnerusa:feature/multiple-keyrings

Conversation

@Jturnerusa

Copy link
Copy Markdown

I want to use gemato in the git-r3 eclass to verify git commit signatures in live ebuilds, but this may require importing multiple keys, since repos can have multiple people working on them at once.

This is a pretty small change and tests seem to pass, but it could probably use some real work testing too which I will do in my local overlay when I patch git-r3.eclass!

@thesamesam

Copy link
Copy Markdown
Member

The commit message should always reflect the PR description (at least any useful parts). Needs Signed-off-by too. Can you add tests?

I would also addBug: https://bugs.gentoo.org/913390.

@Jturnerusa Jturnerusa force-pushed the feature/multiple-keyrings branch 5 times, most recently from 127f825 to 26e67c1 Compare August 15, 2025 17:07
@Jturnerusa

This comment was marked as resolved.

@Jturnerusa Jturnerusa force-pushed the feature/multiple-keyrings branch from 26e67c1 to c0d0918 Compare September 15, 2025 03:25
Comment thread gemato/cli.py Outdated
Comment thread gemato/cli.py Outdated
Comment thread tests/test_openpgp.py
Comment on lines +1286 to +1289
if expected == "pass":
assert retval == 0
else:
assert retval != 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Store retval in the fixture instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by store it in the fixture?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace "pass" with 0.

@Jturnerusa Jturnerusa force-pushed the feature/multiple-keyrings branch from c0d0918 to 191a460 Compare September 18, 2025 06:26
This will allow gemato to be used for example in the git-r3 eclass to
verify git commit signatures, where importing multiple keys may be required.

Bug: https://bugs.gentoo.org/913390

Signed-off-by: John Turner <jturner.usa@gmail.com>
@Jturnerusa Jturnerusa force-pushed the feature/multiple-keyrings branch from 191a460 to b695f0b Compare September 18, 2025 08:34
@Jturnerusa Jturnerusa closed this Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants