Bug 232183 - yumdownloader Crashes When Using --resolve
yumdownloader Crashes When Using --resolve
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: yum-utils (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-14 00:57 EDT by Jonathan Steffan
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-18 04:39:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
fixed packages.py (27.70 KB, text/x-python)
2007-04-13 05:20 EDT, Tim Lauridsen
no flags Details

  None (edit)
Description Jonathan Steffan 2007-03-14 00:57:45 EDT
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.
Comment 1 warren 2007-03-14 01:15:28 EDT
yes indeed, same results here.

-opsec #fedora
Comment 2 Michael DeHaan 2007-04-10 17:54:39 EDT
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

    
Comment 3 Tim Lauridsen 2007-04-11 03:35:08 EDT
>> AttributeError: TransactionMember instance has no attribute 'ver'

This one should be solved in yum-3.0.5 currently in the updates repo, please update.
Comment 4 Michael DeHaan 2007-04-11 11:20:24 EDT
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'
Comment 5 Tim Lauridsen 2007-04-13 05:20:53 EDT
Created attachment 152526 [details]
fixed packages.py
Comment 6 Tim Lauridsen 2007-04-13 05:22:57 EDT
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.
Comment 7 Tim Lauridsen 2007-04-13 05:47:55 EDT
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
Comment 8 Michael DeHaan 2007-04-13 11:19:50 EDT
Works for me, thanks.

Ship it!


Note You need to log in before you can comment on or make changes to this bug.