From 0f69f033cb7f8456e9564dfa293c8c59c85f93a0 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Sun, 9 Mar 2008 19:37:34 +0530 Subject: [PATCH] yum: handle yum.Errors.GroupsError (bug #14906) --- backends/yum/helpers/yumBackend.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backends/yum/helpers/yumBackend.py b/backends/yum/helpers/yumBackend.py index fb32a11..70b9702 100644 --- a/backends/yum/helpers/yumBackend.py +++ b/backends/yum/helpers/yumBackend.py @@ -479,6 +479,8 @@ class PackageKitYumBackend(PackageKitBaseBackend): if group == key: if self._do_extra_filtering(pkg, fltlist): self._show_package(pkg, INFO_AVAILABLE) + except yum.Errors.GroupsError,e: + self.error(ERROR_GROUP_NOT_FOUND,e) except yum.Errors.RepoError,e: self._refresh_yum_cache() self.error(ERROR_NO_CACHE,"Yum cache was invalid and has been rebuilt.") -- 1.5.3.8