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

RepoGpgme: Fix loading known keys, memory leak #162

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Nov 15, 2022

No description provided.

Known keys were loaded from the keyring in the RepoGpgme constructor.
However, RepoGpgme instances were created before the repositories
configuration was loaded. That is, before it was possible to determine
the path to the directory with the keyring. Keys were loaded from
the wrong (non-existent) directory. As a result, libdnf offered to import
keys that were already in the keyring.

Now known keys are loaded later when new keys need to be verified.
@m-blaha m-blaha self-assigned this Nov 15, 2022
@m-blaha m-blaha merged commit 9b7004c into rpm-software-management:main Nov 16, 2022
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.

None yet

2 participants