Smart gui/commandline reaches 93% cache refresh then crashes

Bug #489325 reported by TTPaws
This bug report is a duplicate of:  Bug #245617: Graceful exit on XML SyntaxError. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Undecided
Unassigned

Bug Description

smart 1.2
Opensuse 11.2
2.6.31.5-0.1-desktop
python-2.6.2-6.3.i586

Did an update then when the cache refreshed. This happens anytime a cache is refreshed now. A clean was done and didn't change anything

Loading cache...
Traceback (most recent call last): ########################################### ( 93%)
  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.6/site-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.6/site-packages/smart/commands/update.py", line 77, in main
    ctrl.reloadChannels()
  File "/usr/lib/python2.6/site-packages/smart/control.py", line 383, in reloadChannels
    self._cache.load()
  File "/usr/lib/python2.6/site-packages/smart/backends/rpm/metadata.py", line 339, in loadFileProvides
    self.parseFilesList(fndict)
  File "/usr/lib/python2.6/site-packages/smart/backends/rpm/metadata.py", line 364, in parseFilesList
    for event, elem in cElementTree.iterparse(file, ("start", "end")):
  File "<string>", line 64, in __iter__
SyntaxError: mismatched tag: line 7, column 2

Revision history for this message
Anders F Björklund (afb) wrote :

The repodata for openSUSE 11.2 looks broken (the XML is invalid):
 http://download.opensuse.org/update/11.2/repodata/filelists.xml.gz

Revision history for this message
Christian Fertig (christian-fertig) wrote :

The repodata *is* broken.

But beside of that should smart not crash at this point imho.

Revision history for this message
Anders F Björklund (afb) wrote :

It should probably show a more friendly error message. But the repodata was checksummed and signed...
Currently the code only catch and shows errors when parsing repomd.xml, not the primary or the filelists.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.