Bug 1246881 - dnf crash in builddep
Summary: dnf crash in builddep
Keywords:
Status: CLOSED DUPLICATE of bug 1218299
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-26 15:54 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2015-08-05 09:07 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-05 09:07:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2015-07-26 15:54:19 UTC
Description of problem:
$ sudo dnf builddep pdns
enabling rawhide-source repository
Fedora - Rawhide - Source                                     6.8 MB/s | 5.9 MB     00:00    
Last metadata expiration check performed 0:00:01 ago on Sun Jul 26 11:50:54 2015.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 154, in _src_deps
    h = self.rpm_ts.hdrFromFdno(fd)
  File "/usr/lib64/python3.4/site-packages/rpm/transaction.py", line 166, in hdrFromFdno
    raise rpm.error("public key not available")
_rpm.error: public key not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 134, in _main
    cli.run()
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1077, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 71, in inner
    return func(*args, **kwds)
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 130, in run
    self._remote_deps(pkgspec)
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 194, in _remote_deps
    self._src_deps(pkg.localPkg())
  File "/usr/lib/python3.4/site-packages/dnf-plugins/builddep.py", line 156, in _src_deps
    if e[0] == 'public key not available':
TypeError: 'error' object does not support indexing


Version-Release number of selected component (if applicable):
This is on rawhide.

dnf-1.0.1-3.fc23.noarch
dnf-plugins-core-0.1.9-1.fc23.noarch

How reproducible:
Crashes again when I rerun the command.

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-07-26 16:00:39 UTC
Also happens after I update dnf:
dnf-1.0.2-2.fc24.noarch
python3-dnf-1.0.2-2.fc24.noarch
python3-dnf-plugins-core-0.1.9-1.fc23.noarch
dnf-plugins-core-0.1.9-1.fc23.noarch

Comment 2 Michael Mráka 2015-08-05 09:07:11 UTC

*** This bug has been marked as a duplicate of bug 1218299 ***


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