Bug 18722

Summary: 'yum.Errors.RepoError' when Add/Remove Software was launched (No InterNet connection to system)
Product: PackageKit Reporter: Arvind <goifishing>
Component: backend-yumAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Arvind 2008-11-26 21:12:55 UTC
Following ERROR was displayed when Add/Remove Software was launched in Fedora Core 10 LIVE
(No InterNet connection to system)

Version: gpk-application 0.3.9

Error Type: <class 'yum.Errors.RepoError'>
Error Value: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2202, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2198, in main
    backend = PackageKitYumBackend('', lock=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 193, in __init__
    if not self.comps.connect():
  File : /usr/share/PackageKit/helpers/yum/yumComps.py, line 223, in connect
    self._make_database_tables()
  File : /usr/share/PackageKit/helpers/yum/yumComps.py, line 240, in _make_database_tables
    self.refresh()
  File : /usr/share/PackageKit/helpers/yum/yumComps.py, line 249, in refresh
    cats = self.yumbase.comps.categories
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 608, in <lambda>
    comps = property(fget=lambda self: self._getGroups(),
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 549, in _getGroups
    if not repo.ready():
  File : /usr/lib/python2.5/site-packages/yum/yumRepo.py, line 322, in ready
    return self.repoXML is not None
  File : /usr/lib/python2.5/site-packages/yum/yumRepo.py, line 1277, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File : /usr/lib/python2.5/site-packages/yum/yumRepo.py, line 1273, in _getRepoXML
    raise Errors.RepoError, msg
Comment 1 Arvind 2008-11-26 22:56:51 UTC
Changed Component to backend-yum
Comment 2 Richard Hughes 2008-11-27 01:42:44 UTC
Fixed in git, many thanks:

commit 5fffe3ec758748cd5bcc79236d9dfe91021972aa
Author: Richard Hughes <richard@hughsie.com>
Date:   Thu Nov 27 09:41:42 2008 +0000

    yum: catch yum.Errors.RepoError when we get the yum comps groups. Fixes fd#18722

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.