coworker wants to download a module with all its dependencies, for use in updating an offline system... CentOS 5.latest ...
[root@pig home]# yum -y install yum-utils ......
[root@pig home]# 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' [root@pig home]#
um... this a bug?
Hi,
On Thu, May 8, 2008 at 4:38 PM, John R Pierce pierce@hogranch.com wrote:
coworker wants to download a module with all its dependencies, for use in updating an offline system... CentOS 5.latest ...
[root@pig home]# yumdownloader --resolve gcc
...
File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in __eq__ if other == None:
...
um... this a bug?
Yes, it's a bug!
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. I will open a bug upstream for that.
Filipe
Filipe Brandenburger wrote:
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. I will open a bug upstream for that.
Can you give us the bug number for that?
Thanks,
Ralph
2008/5/9 Ralph Angenendt ra+centos@br-online.de:
Can you give us the bug number for that?
https://bugzilla.redhat.com/show_bug.cgi?id=445773
It was closed as duplicate of another bug this morning, I don't know if I would agree with that. Filipe
Filipe Brandenburger wrote:
2008/5/9 Ralph Angenendt ra+centos@br-online.de:
Can you give us the bug number for that?
https://bugzilla.redhat.com/show_bug.cgi?id=445773
It was closed as duplicate of another bug this morning, I don't know if I would agree with that.
As the resolution is "wait for newer yum-utils in 5.2", let's see if this bug also is fixed.
Cheers,
Ralph