yum: handle yum.Errors.GroupsError (bug #14906)
This commit is contained in:
parent
5e1721c3fa
commit
6de9695280
@ -479,6 +479,8 @@ class PackageKitYumBackend(PackageKitBaseBackend):
|
|||||||
if group == key:
|
if group == key:
|
||||||
if self._do_extra_filtering(pkg, fltlist):
|
if self._do_extra_filtering(pkg, fltlist):
|
||||||
self._show_package(pkg, INFO_AVAILABLE)
|
self._show_package(pkg, INFO_AVAILABLE)
|
||||||
|
except yum.Errors.GroupsError,e:
|
||||||
|
self.error(ERROR_GROUP_NOT_FOUND,e)
|
||||||
except yum.Errors.RepoError,e:
|
except yum.Errors.RepoError,e:
|
||||||
self._refresh_yum_cache()
|
self._refresh_yum_cache()
|
||||||
self.error(ERROR_NO_CACHE,"Yum cache was invalid and has been rebuilt.")
|
self.error(ERROR_NO_CACHE,"Yum cache was invalid and has been rebuilt.")
|
||||||
|
Loading…
Reference in New Issue
Block a user