Description of problem: There is a Python bug in yumdownloader that triggers with the command "yumdownloader --resolve gcc". The problem was identified on CentOS, but it is clearly a Python bug. There is one line of Python that tests "if other == None" when the correct is using the "is" operator, testing "if other is None". The URL I posted is to the message in CentOS mailing list where the problem was identified. Version-Release number of selected component (if applicable): 1.0.4-3 How reproducible: Always Steps to Reproduce: 1. yum install yum-utils 2. yumdownloader --resolve gcc Actual results: # yumdownloader --resolve gcc Loading "priorities" plugin Loading "installonlyn" plugin Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished 263 packages excluded due to repository priority protections 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' # Expected results: # yumdownloader --resolve gcc Loading "installonlyn" plugin gcc-4.1.2-14.el5.x86_64.r 100% |=========================| 5.3 MB 00:10 Additional info: In line 191 of packages.py, the "is" operator should be used instead of "==". The line should read: is other is None: I changed my file and after that it worked fine.
*** This bug has been marked as a duplicate of 391791 ***