Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an abstract keystore class + port fs + rpmdb keystores to it #3407

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

pmatilai
Copy link
Member

The beef is in the second commit, the other two are just minor refactoring (so yeah there was one more of those 😄 )

Fixes: #3342

This used to return number of keys loaded but it didn't really mean
anything, and so nothing was checking the results either. So for
now keystore load simply always returns success, that's how it has
technically always behaved anyway.
Add an abstract rpm::keystore class and port our existing rpmdb and fs
keystores to that. The keystore code as such doesn't really change at
all in here, the bigger change is the way it's initialized because it's
an object instead of just an integer in the rpmts struct.

As a kind of side-effect, we introduce the rpm:: namespace here.

Fixes: rpm-software-management#3342
This is currently unused, move it last and give it a default
value to avoid callers needing to bother. No functional changes.
@pmatilai pmatilai requested a review from a team as a code owner October 28, 2024 11:59
@pmatilai pmatilai requested review from dmnks and ffesti and removed request for a team and dmnks October 28, 2024 11:59
@ffesti
Copy link
Contributor

ffesti commented Oct 28, 2024

This is surprisingly straight forward. Guess all the refactoring in advance has paid off.

@ffesti ffesti merged commit ebc4068 into rpm-software-management:master Oct 28, 2024
1 check passed
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.

Implement an abstact keystore API
2 participants