Bug 1221860

Summary: [abrt] python-dnf: debuginfo-install.py:75:_pkgname_src:AttributeError: 'NoneType' object has no attribute 'replace'
Product: [Fedora] Fedora Reporter: 汪明衡 <ifoolb>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7babb2179ab0c167f28891f5970af7df4ffe78e3
Whiteboard: abrt_hash:2b88634df65cba1d3b0503854cd45e8fb053d060
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-15 17:18:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description 汪明衡 2015-05-15 05:10:29 UTC
Version-Release number of selected component:
python-dnf-0.6.5-1.fc22

Additional info:
reporter:       libreport-2.5.1
cmdline:        /usr/bin/python -OO /bin/dnf-2 debuginfo-install glibc-2.21-5.fc22
dso_list:       python-dnf-plugins-core-0.1.6-3.fc22.noarch
executable:     /bin/dnf-2
kernel:         3.18.7-200.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
debuginfo-install.py:75:_pkgname_src:AttributeError: 'NoneType' object has no attribute 'replace'

Traceback (most recent call last):
  File "/bin/dnf-2", 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
    cli.run()
  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
    self._di_install(pkg)
  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'

Local variables in innermost frame:
package: <hawkey.Package object id 70098, glibc-2.21-5.fc22.src, fedora-source>

Comment 1 汪明衡 2015-05-15 05:10:33 UTC
Created attachment 1025684 [details]
File: backtrace

Comment 2 汪明衡 2015-05-15 05:10:35 UTC
Created attachment 1025685 [details]
File: environ

Comment 3 Honza Silhan 2015-05-15 17:18:34 UTC
"dnf update dnf-plugins-core" ;)

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