Skip to content

Commit

Permalink
repo: Fix metadata signature checking in dnf_repo_check()
Browse files Browse the repository at this point in the history
Correctly set LRO_GNUPGHOMEDIR so that librepo can do gpg signature
verification against a downloaded gpg key.

This fixes packagekit offline updates to work with repo_gpgcheck=1 repos
where we have the repo key downloaded, and just need to check the
signatures.

https://bugzilla.redhat.com/show_bug.cgi?id=1285510

Closes: #235
Approved by: ignatenkobrain
  • Loading branch information
kalev authored and DNF Bot committed Dec 20, 2016
1 parent fd770a7 commit 3675456
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libdnf/dnf-repo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,8 @@ dnf_repo_check_internal(DnfRepo *repo,
return FALSE;
if (!lr_handle_setopt(priv->repo_handle, error, LRO_MIRRORLIST, NULL))
return FALSE;
if (!lr_handle_setopt(priv->repo_handle, error, LRO_GNUPGHOMEDIR, priv->keyring))
return FALSE;
lr_result_clear(priv->repo_result);
if (!lr_handle_perform(priv->repo_handle, priv->repo_result, &error_local)) {
g_set_error(error,
Expand Down

0 comments on commit 3675456

Please sign in to comment.