Bug 236007

Summary: yumdownloader returns error when using --resolve option
Product: [Fedora] Fedora Reporter: Bruno Oliveira <brunodeoliveira>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-03 20:20:50 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:

Description Bruno Oliveira 2007-04-11 14:09:23 UTC
Description of problem:
Problem when using the --resolve option with yumdownloader (yum-utils)

Version-Release number of selected component (if applicable):
yum-utils-1.0.3-1.fc6.noarch.rpm

How reproducible:
yumdownloader <package> --resolve
  
Actual results:
[root@bnogueira gmplayer]# yumdownloader mplayer --resolve
Traceback (most recent call last):
  File "/usr/bin/yumdownloader", line 191, in ?
    main()
  File "/usr/bin/yumdownloader", line 159, in main
    if not pkg in toDownload:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in __eq__
    if other == None: 
  File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 403, in
__cmp__
    if self.name > other.name:
AttributeError: 'NoneType' object has no attribute 'name'
[root@bnogueira gmplayer]#

Comment 1 warren 2007-04-11 14:14:19 UTC
i get the same error:

# yumdownloader --resolve mplayer
livna                     100% |=========================| 1.1 kB    00:00     
core                      100% |=========================| 1.1 kB    00:00     
updates                   100% |=========================| 1.2 kB    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
primary.xml.gz            100% |=========================| 502 kB    00:01     
updates   : ################################################## 1215/1215
primary.xml.gz            100% |=========================| 1.6 MB    00:03     
extras    : ################################################## 5078/5078
mplayer-1.0-0.72.20070325 100% |=========================|  17 kB    00:00     
lzo-2.02-2.fc6.i386.rpm   100% |=========================| 4.0 kB    00:00     
enca-1.9-3.fc6.i386.rpm   100% |=========================| 7.9 kB    00:00     
Traceback (most recent call last):
  File "/usr/bin/yumdownloader", line 191, in ?
    main()
  File "/usr/bin/yumdownloader", line 159, in main
    if not pkg in toDownload:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in __eq__
    if other == None: 
  File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line 403, in
__cmp__
    if self.name > other.name:
AttributeError: 'NoneType' object has no attribute 'name'


Comment 2 Jeremy Katz 2007-04-16 14:54:30 UTC
What version of yum do you have installed?

Comment 3 Bruno Oliveira 2007-04-16 15:11:12 UTC
[bruno@bnogueira ~]$ yum --version
3.0.5


Comment 4 Jeremy Katz 2007-04-16 15:54:25 UTC
Can you try with 3.0.6 in updates-testing?  I'm pretty sure I saw Tim commit
something for this

Comment 5 Seth Vidal 2007-08-03 20:20:50 UTC
closing insufficient data
reopen if you can provide the information