Description of problem: When using yumdownloader, --resolve option produces traceback. Version-Release number of selected component (if applicable): yum-utils-1.0.3-1.fc6 How reproducible: Always Steps to Reproduce: 1.yumdownloader --resolve yum-utils 2.yumdownloader --source --enablerepo=extras-source yum-utils Actual results: Bin: yum-utils-1.0.3-1.fc6.noa 100% |=========================| 6.4 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 comparePoEVR(self, other) == 0 and self.arch == other.arch and self.name == other.name: File "/usr/lib/python2.4/site-packages/yum/packages.py", line 35, in comparePoEVR (e2, v2, r2) = (po2.epoch, po2.ver, po2.rel) AttributeError: TransactionMember instance has no attribute 'ver' Source: yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 yum-utils-1.0.3-1.fc6.src 100% |=========================| 4.0 kB 00:00 Traceback (most recent call last): File "/usr/bin/yumdownloader", line 191, in ? main() File "/usr/bin/yumdownloader", line 156, in main my.resolveDeps() File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 191, in resolveDeps self.populateTs(test=1) File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 150, in populateTs self.downloadHeader(txmbr.po) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 760, in downloadHeader cache=repo.http_caching != 'none', File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 454, in getHeader cache=cache, File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 426, in __get raise Errors.RepoError, "failure: %s from %s: %s" % (relative, self.id, e) yum.Errors.RepoError: failure: yum-utils-1.0.3-1.fc6.src.rpm from extras-source: [Errno 256] No more mirrors to try. Expected results: It works.
yes indeed, same results here. -opsec #fedora
Confirmed, me too... /usr/bin/yumdownloader --config=/var/www/cobbler/repo_mirror/.origin/fc6x86_64extras.repo --destdir=/var/www/cobbler/repo_mirror --resolve koan cobbler 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 comparePoEVR(self, other) == 0 and self.arch == other.arch and self.name == other.name: File "/usr/lib/python2.4/site-packages/yum/packages.py", line 35, in comparePoEVR (e2, v2, r2) = (po2.epoch, po2.ver, po2.rel) AttributeError: TransactionMember instance has no attribute 'ver' The config file has the following contents: [fc6x86_64extras] name=fc6x86_64extras baseurl=http://mirrors.kernel.org/fedora/extras/6/x86_64/ enabled=1 gpgcheck=0
>> AttributeError: TransactionMember instance has no attribute 'ver' This one should be solved in yum-3.0.5 currently in the updates repo, please update.
Same command, different error ... [root@mdehaan cobbler]# /usr/bin/yumdownloader --config=/var/www/cobbler/repo_mirror/.origin/fc6x86_64extras.repo --resolve --destdir=/var/www/cobbler/repo_mirror/fc6x86_64extras cobbler koan python-cheetah yum-utils livna 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 1.2 kB 00:00 core 100% |=========================| 1.1 kB 00:00 extras 100% |=========================| 1.1 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'
Created attachment 152526 [details] fixed packages.py
Michael: Please try to replace /usr/lib/python2.4/site-packages/yum/packages.py with the attached one, to see if it fixes the problem.
Ok, i have reproduced the error and is fixed with the attached packages.py. I have sumbitted it to upstream CVS for yum-3.1.x and yum-3.0.x. it should be available in yum-3.0.7 and yum-3.1.7
Works for me, thanks. Ship it!