[packagekit] yum error?
Tim Lauridsen
tim.lauridsen at googlemail.com
Mon Mar 17 05:22:52 PDT 2008
Richard Hughes wrote:
> yum from git:
>
> Exception in thread Thread-5:
> Traceback (most recent call last):
> File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
> self.run()
> File "/usr/lib/python2.5/threading.py", line 440, in run
> self.__target(*self.__args, **self.__kwargs)
> File "./yumDBUSBackend.py", line 489, in doSearchFile
> self.yumbase.repos.populateSack(mdtype='filelists')
> File "/usr/lib/python2.5/site-packages/yum/repos.py", line 244, in populateSack
> sack.populate(repo, mdtype, callback, cacheonly)
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 149, in populate
> if self._check_db_version(repo, mydbtype):
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 203, in _check_db_version
> return repo._check_db_version(mdtype)
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 911, in _check_db_version
> repoXML = self.repoXML
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1057, in <lambda>
> repoXML = property(fget=lambda self: self._getRepoXML(),
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1049, in _getRepoXML
> self._loadRepoXML(text=self)
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1032, in _loadRepoXML
> return self._groupLoadRepoXML(text)
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 1023, in _groupLoadRepoXML
> if self._commonLoadRepoXML(text):
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 904, in _commonLoadRepoXML
> if not self._groupCheckDataMDNewer():
> File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 862, in _groupCheckDataMDNewer
> old_repo_XML = self._oldRepoMDData['old_repo_XML']
> KeyError: 'old_repo_XML'
>
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
Looks like a bug in the meta group code, you can work around it by
comment out repo.mdpolicy = "group:all" in _check_init() in
yumDBUSBackend.py, until it is fixed in upstream yum
James A:
Look like you need to check if 'old_repo_XML' is a key in
self._oldRepoMDData, like you do in another part of the code.
Tim
More information about the PackageKit
mailing list