[packagekit] yum repo keys

Richard Hughes hughsient at gmail.com
Fri Nov 14 01:32:17 PST 2008


Can anyone see the problem here?

[hughsie at hughsie-laptop yum]$ sudo ./yumBackend.py get-updates none
Loaded plugins: refresh-packagekit
allow-cancel	true
no-percentage-updates
status	info
status	download-repository
subpercentage	0
subpercentage	100
status	download-repository
subpercentage	0
subpercentage	100
subpercentage	0
Importing GPG key 0x69886CC7 "Seth Vidal <skvidal at phy.duke.edu>" from http://sethdot.org/~skvidal/skvidal.gpg
repo-signature-required	;;;signs-good	signs-good	http://sethdot.org/~skvidal/skvidal.gpg	Seth Vidal <skvidal at phy.duke.edu>	69886CC7	cb5505f988680962df52f6a6d408f7c769886cc7	Sun Sep 16 23:56:43 2001	gpg
error	gpg-failure	GPG key 69886CC7 required
finished

[hughsie at hughsie-laptop yum]$ sudo ./yumBackend.py install-signature gpg 69886CC7 ";;;signs-good"
Loaded plugins: refresh-packagekit
allow-cancel	true
no-percentage-updates
status	info
subpercentage	0
Importing GPG key 0x69886CC7 "Seth Vidal <skvidal at phy.duke.edu>" from http://sethdot.org/~skvidal/skvidal.gpg
finished

[hughsie at hughsie-laptop yum]$ sudo ./yumBackend.py get-updates none
Loaded plugins: refresh-packagekit
allow-cancel	true
no-percentage-updates
status	info
status	download-repository
subpercentage	0
subpercentage	100
status	download-repository
subpercentage	0
subpercentage	100
subpercentage	0
Importing GPG key 0x69886CC7 "Seth Vidal <skvidal at phy.duke.edu>" from http://sethdot.org/~skvidal/skvidal.gpg
repo-signature-required	;;;signs-good	signs-good	http://sethdot.org/~skvidal/skvidal.gpg	Seth Vidal <skvidal at phy.duke.edu>	69886CC7	cb5505f988680962df52f6a6d408f7c769886cc7	Sun Sep 16 23:56:43 2001	gpg
error	gpg-failure	GPG key 69886CC7 required
finished

The key import doesn't seem to work. The key import is done like this:

repo = self.yumbase.repos.getRepo(repoid)
if repo:
    try:
        self.yumbase.repos.doSetup(thisrepo=repoid)
        self.yumbase.getKeyForRepo(repo, callback = lambda x: True)
    except yum.Errors.YumBaseError, e:
        self.error(ERROR_UNKNOWN, "cannot install signature: %s" % str(e))
    except Exception, e:
        self.error(ERROR_GPG_FAILURE, "Error importing GPG Key for the %s repository: %s" % (repo, str(e)))

Anybody got any ideas?

Richard.





More information about the PackageKit mailing list