[packagekit] YUM backend problems

Tim Lauridsen tim.lauridsen at googlemail.com
Thu Nov 1 02:26:52 PDT 2007


Richard Hughes wrote:
> Another backend problem:
>
> Traceback (most recent call last):
>   File "/usr/share/PackageKit/helpers/yum/search-group.py", line 21, in <module>
>     backend.search_group(options,searchterms)
>   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,
>
> Richard.
>
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>   
There have fixed it. so search-group will send a ERROR_NO_CACHE if 
something is missing in the cache, like the other search helpers.
I also fixed an issue in refresh-cache so it will read the group 
metadata & made search-group only look in the cache.

Tim



More information about the PackageKit mailing list