Bug 431576 - Pirut crash. AttributeError: 'YumRepository' object has no attribute 'metadata_cookie'
Summary: Pirut crash. AttributeError: 'YumRepository' object has no attribute 'metadat...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pirut
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-05 16:21 UTC by Greg Martyn
Modified: 2008-05-28 19:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-28 19:50:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Greg Martyn 2008-02-05 16:21:38 UTC
Description of problem:
Had 1 update available. Clicked the install updates popup. Pirut launched. 
Clicked install. It asked for Fedora DVD. I didn't want to bother, so I 
clicked the configure repositories button. Removed the DVD, added 
fedora-source and -debug, and updates-source and -debug. Crash.

Version-Release number of selected component (if applicable):
pirut.noarch        1.3.28-1.fc8           installed

How reproducible:
It wasn't reproducible.

Steps to Reproduce:
N/A
  
Actual results:
Component: pirut
Summary: TB9deafc8e 
yumRepo.py:735:_loadRepoXML:AttributeError: 'YumRepository' object has no 
attribute 'metadata_cookie'

Traceback (most recent call last):
  File "/usr/sbin/pup", line 611, in <module>
    main()
  File "/usr/sbin/pup", line 607, in main
    pup.run()
  File "/usr/sbin/pup", line 447, in run
    self.doRefresh()
  File "/usr/sbin/pup", line 262, in doRefresh
    pbar = self.doRefreshRepos(destroy=False)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 339, in 
doRefreshRepos
    self.reposSetup(pbar, thisrepo)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 303, in 
reposSetup
    self.doTsSetup()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 72, in 
doTsSetup
    return self._getTs()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in _getTs
    self._getTsInfo()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 91, in 
_getTsInfo
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 529, in 
<lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 384, in 
_getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 242, in 
populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 142, in 
populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 199, in 
_check_db_version
    if repo.repoXML.repoData.has_key(mdtype):
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 774, in 
<lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 766, in 
_getRepoXML
    self._loadRepoXML(text=self)
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 735, in 
_loadRepoXML
    if self.cache or self.withinCacheAge(self.metadata_cookie, 
self.metadata_expire):
AttributeError: 'YumRepository' object has no attribute 'metadata_cookie'

Local variables in innermost frame:
remote: repodata/repomd.xml
self: updates-source
local: /repomd.xml
text: updates-source


Expected results:

Additional info:

Comment 1 Jeremy Katz 2008-02-05 16:38:12 UTC
What version of yum do you hvae installed?

Comment 2 Greg Martyn 2008-02-05 16:51:22 UTC
yum.noarch        3.2.8-2.fc8            installed

Comment 3 Jeremy Katz 2008-05-28 19:33:20 UTC
Are you still seeing this problem?

Comment 4 Greg Martyn 2008-05-28 19:42:08 UTC
i'm using f9 now


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