[packagekit] YUM backend problems

Richard Hughes hughsient at gmail.com
Wed Oct 31 15:51:02 PDT 2007

Another backend problem:

Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/search-group.py", line 21, in <module>
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 357, in search_group
    pkgGroupDict = self._buildGroupDict()
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 335, in _buildGroupDict
    cats = self.yumbase.comps.categories
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 542, in <lambda>
    comps = property(fget=lambda self: self._getGroups(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 486, in _getGroups
    if not repo.ready():
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 283, in ready
    return self.repoXML is not None
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 769, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 765, in _getRepoXML
    raise Errors.RepoError, msg
yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: livna-testing. Please verify its path and try again
[hughsie at hughsie-laptop src]$ 

Can we catch all yum.Errors - and even if we don't recognize them just
emit INTERNAL_ERROR and the RepoError in the description. Just doing a
traceback is not a great thing to do at all.

Thanks guys,


More information about the PackageKit mailing list