Bug 241557 - can't check whether a non-setup()ed repo is ready()
can't check whether a non-setup()ed repo is ready()
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-27 23:23 EDT by Bill Nottingham
Modified: 2014-03-16 23:07 EDT (History)
1 user (show)

See Also:
Fixed In Version: 3.2.1-1.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-06-27 21:49:15 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)

  None (edit)
Description Bill Nottingham 2007-05-27 23:23:30 EDT
Description of problem:


>>> f = yum.yumRepo.YumRepository('foo')
>>> print f
foo
>>> print f.ready()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 274, in ready
    return self.repoXML is not None
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 684, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 678, in _getRepoXML
    self._loadRepoXML(text=self)
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 647, in _loadRepoXML
    if self.cache or self.metadataCurrent():
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 608, in
metadataCurrent
    if os.path.exists(self.metadata_cookie):
AttributeError: 'YumRepository' object has no attribute 'metadata_cookie'

Version-Release number of selected component (if applicable):

yum-3.2.0-1.fc7

How reproducible:

Every time

Additional info:

See also bug 241552.
Comment 1 Seth Vidal 2007-06-21 14:00:17 EDT
this will be fixed in 3.2.1 as it also impacts 'grouplist' :)
Comment 2 Fedora Update System 2007-06-21 18:03:25 EDT
yum-3.2.1-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
Comment 3 Fedora Update System 2007-06-27 21:48:34 EDT
yum-3.2.1-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 4 Fedora Update System 2007-07-23 11:46:12 EDT
yum-3.2.2-1.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.
Comment 5 Seth Vidal 2007-08-02 23:22:11 EDT
3.2.2 fixes the specific case but the general case, I believe is fixed by this:

http://devel.linux.duke.edu/gitweb/?p=yum.git;a=commit;h=4d832cb25f710435d8f75e9c32630069e7cee076

Comment 6 Fedora Update System 2007-08-15 15:47:26 EDT
yum-3.2.2-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

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