Bug 852803 - traceback when a GPG key for a package/repo is missing
Summary: traceback when a GPG key for a package/repo is missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-29 15:57 UTC by Ales Kozumplik
Modified: 2014-09-30 23:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-17 23:28:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ales Kozumplik 2012-08-29 15:57:17 UTC
Any attempt to install or update a package from a repo which PGP has not yet been imported to RPM results in the following traceback:

Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 1aca3465: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64
Traceback (most recent call last):
  File "./bin/dnf", line 35, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/home/akozumpl/dnf/dnf/cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/home/akozumpl/dnf/dnf/cli/yummain.py", line 224, in main
    return_code = base.doTransaction()
  File "/home/akozumpl/dnf/dnf/cli/cli.py", line 548, in doTransaction
    if self.gpgsigcheck(downloadpkgs) != 0:
  File "/home/akozumpl/dnf/dnf/cli/cli.py", line 672, in gpgsigcheck
    self.getKeyForPackage(po, lambda x, y, z: self.userconfirm())
  File "/home/akozumpl/dnf/dnf/yum/__init__.py", line 4814, in getKeyForPackage
    ts = self.rpmdb.readOnlyTS()
AttributeError: 'YumBaseCli' object has no attribute 'rpmdb'

Comment 1 Ales Kozumplik 2012-08-30 12:15:51 UTC
Fixed on master by 2d3e1bc.

Comment 2 Fedora Update System 2012-09-10 12:28:52 UTC
dnf-0.2.10-2.gitb06d183.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dnf-0.2.10-2.gitb06d183.fc18

Comment 3 Fedora Update System 2012-09-10 16:07:25 UTC
Package dnf-0.2.10-2.gitb06d183.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.2.10-2.gitb06d183.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13711/dnf-0.2.10-2.gitb06d183.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-09-13 11:04:21 UTC
dnf-0.2.11-1.git9da1268.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dnf-0.2.11-1.git9da1268.fc18

Comment 5 Fedora Update System 2012-09-17 23:28:28 UTC
dnf-0.2.11-1.git9da1268.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.