Summary: | pk-application can not handle yum.Errors.GroupsError | ||
---|---|---|---|
Product: | PackageKit | Reporter: | Debarshi Ray <rishi.is> |
Component: | backend-yum | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | rnorwood |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Traceback screenshot
Proposed fix. |
Created attachment 14976 [details] [review] Proposed fix. The attached patch fixes the problem for me. Is it the correct approach? Yes, fix looks great. Please can you push when I have given you commit access. Thanks. (In reply to comment #2) > Please can you push when I have given you commit access. Ok. I will do that. (In reply to comment #2) > Yes, fix looks great. Please can you push when I have given you commit access. Committed and pushed to upstream as '6de9695280a20dfd270f91fe5f2fe4889872c786'. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 14963 [details] Traceback screenshot I have disabled all upstream Fedora repositories and only have a local repository on my hard disk, which does not have any groups. Running pk-application and selecting any group in the Groups tab spits out a traceback (screenshot attached): Error Type: <class 'yum.Errors.GroupsError'> Error Value: No Groups Available in any repository 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 455, in search_group pkgGroupDict = self._buildGroupDict() File : /usr/share/PackageKit/helpers/yum/yumBackend.py , line 427, in _buildGroupDict cats = self.yumbase.comps.categories File : /usr/lib/python2.5/site-packages/yum/__init__.py , line 545, in <lambda> comps = property(fget=lambda self: self._getGroups(), File : /usr/lib/python2.5/site-packages/yum/__init__.py , line 518, in _getGroups raise Errors.GroupsError, 'No Groups Available in any repository' Installed packages: gnome-packagekit-0.1.9-1.fc9 PackageKit-0.1.9-1.fc9 PackageKit-libs-0.1.9-1.fc9 yum-3.2.8-2.fc8