Mailinglist Archive: zypp-devel (10 mails)

< Previous Next >
Re: [zypp-devel] Refreshing of Repositories and GPG Keys
  • From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
  • Date: Thu, 31 May 2012 15:51:25 +0200
  • Message-id: <4FC7775D.10302@suse.de>
On 05/30/2012 09:43 PM, Saurabh Sood wrote:
Hi,
I need to refresh the repository metadata, in case a repository has
been added. I am currently using this line
rman.refreshMetadata(repoinfo,zypp::RepoManager::RefreshIfNeeded);

where rman is an object of zypp::RepoManager. Is this right, or
something else needs to be done?

Also, I could not get how to get the GPG keys for the particular
repository if it exists. I have currently avoided the check for GPG
keys.


Why do you need to get the gpg keys? This is handled mostly automatically, and you only need to implement the callbacks (Reports).

e.g.: https://github.com/openSUSE/zypper/blob/master/src/callbacks/keyring.h

Duncan

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: zypp-devel+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
References