Bug 1215154 - [PATCH] dnf debuginfo-install: AttributeError: 'NoneType' object has no attribute 'replace'
Summary: [PATCH] dnf debuginfo-install: AttributeError: 'NoneType' object has no attri...
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 22
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
: 1221860 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2015-04-24 12:33 UTC by Lubomir Rintel
Modified: 2015-05-15 17:18 UTC (History)
8 users (show)

Fixed In Version: dnf-plugins-core-0.1.7-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-05-08 07:27:31 UTC
Type: Bug

Attachments (Terms of Use)

Description Lubomir Rintel 2015-04-24 12:33:21 UTC
Description of problem:

d[root@belphegor lkundrak]# dnf debuginfo-install network-manager-applet
Repository u'rhel' is missing name in configuration, using id.
Failed to synchronize cache for repo 'rpmfusion-free-debuginfo' from 'http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-debug-22&arch=x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist, disabling.
Failed to synchronize cache for repo 'rpmfusion-free' from 'http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-22&arch=x86_64': Cannot prepare internal mirrorlist: No URLs in mirrorlist, disabling.
Fedora 22 - x86_64 - Updates - Debug                                                                                                                                               3.3 kB/s | 257  B     00:00    
Fedora 22 - x86_64 - Debug                                                                                                                                                          19 MB/s |  11 MB     00:00    
^[[1;5HFedora 22 - x86_64 - Test Updates Debug                                                 0% [                                                                                     ] ---  B/s |   0  B     --:Fedora 22 - x86_64 - Test Updates Debug                                                                                                                                             19 MB/s | 4.1 MB     00:00    
RPM Fusion for Fedora 22 - Free - Updates Debug                                                                                                                                    6.7 kB/s | 411  B     00:00    
Traceback (most recent call last):
  File "/usr/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in _main
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1071, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/debuginfo-install.py", line 70, in run
  File "/usr/lib/python2.7/site-packages/dnf-plugins/debuginfo-install.py", line 102, in _di_install
    srcname = self._pkgname_src(package)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/debuginfo-install.py", line 75, in _pkgname_src 
    name = package.sourcerpm.replace("-{}.src.rpm".format(package.evr), "")
AttributeError: 'NoneType' object has no attribute 'replace'
[root@belphegor lkundrak]# 

Version-Release number of selected component (if applicable):

 rpm -qa |grep dnf

Comment 1 Lubomir Rintel 2015-04-24 12:55:06 UTC
Seems like I can fix it:


Comment 2 Honza Silhan 2015-04-24 14:55:50 UTC
PR was accepted and you were added to dnf-plugins-core authors, thanks

Comment 3 Fedora Update System 2015-05-02 13:49:55 UTC
dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22 has been submitted as an update for Fedora 22.

Comment 4 Fedora Update System 2015-05-03 17:24:49 UTC
Package dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.7-1.fc22 hawkey-0.5.5-1.fc22 dnf-1.0.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-05-08 07:27:31 UTC
dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Honza Silhan 2015-05-15 17:18:34 UTC
*** Bug 1221860 has been marked as a duplicate of this bug. ***

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