Hi,
I implemented the callbacks, but I could not get how the connection to
the callbacks will be made. I want the GPG keys to be imported
whenever the repository is to be added. I have so far instantiated the
class, which uses the struct for KeyRingReport.
Regards,.
Saurabh
On Thu, May 31, 2012 at 7:21 PM, Duncan Mac-Vicar P.
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@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org